摘要: 轉自:http://longxzq-126-com.iteye.com/blog/586694在Mysql中ROW_COUNT()返回前一个SQL进行UPDATE,DELETE,INSERT操作所影响的行数。下面通过一个更新的例子来说明:MySQL上的测试(数据库版本为:5.1.22):1.创建数据库表:create table t(id int,name varchar(50),address varchar(100),primary key(id,name))engine =InnoDB;2.插入测试数据:insert into t(id,name,address) values(1,
阅读全文
posted @ 2011-08-26 15:36 Athrun 阅读(37) 评论(0)
编辑