The application never knows what value is put into the primary key column after running the INSERT statement.
在运行insert语句之后,应用程序将永远都不知道放入了主键列中的是什么值。
In table 6, the INSERT into the Orders table fails due to a foreign key constraint violation on custno.
在表6中,对orders表执行insert语句失败,因为custno违背了外键约束。
The addProduct() method in Listing 9 accepts a new product record as an array of key-value pairs and then uses the Zend_Db object's insert() method to write this record to the database table.
清单 9 中的 addProduct() 函数接收一个新产品记录作为键-值对数组,然后使用 Zend_Db 对象的 insert() 函数将记录写入到数据库表中。
应用推荐