Insert(): This function is simply used to insert a record into the database. It is not necessary that ID should be autoincremented. InsertGetId(): This function also inserts a record into the table, but it is used when the ID field is auto-increment.