Method Mysql.SqlTable()->insert_ignore()


Method insert_ignore

int insert_ignore(mapping(string:mixed) ... records)

Description

Inserts one or more records into the table using an INSERT IGNORE command. If some of the given records conflict with existing records then they are ignored.

Zero is returned if all records were ignored. The record mapping is updated with the id_col record id only if a single record is given. Otherwise this function behaves like insert.

See also

insert, replace