zionwang 发表于 2012-1-20 11:13:57

CI 如何返回上一个插入ID,是DB中的哪一个

CI 如何返回上一个插入ID,是DB中的哪一个

jeongee 发表于 2012-1-20 13:20:49

http://codeigniter.org.cn/user_guide/database/helpers.html

笼中 发表于 2012-1-20 15:14:41

jeongee 发表于 2012-1-20 13:20 static/image/common/back.gif
http://codeigniter.org.cn/user_guide/database/helpers.html

如何确定delete操作的结果呢?

怎么判断 delete 是否成功, affetched_rows对delete返回0?

visvoy 发表于 2012-1-20 16:09:39

->db->insert_id()

ciogao 发表于 2012-1-30 12:31:57

$this->db->insert_id()
页: [1]
查看完整版本: CI 如何返回上一个插入ID,是DB中的哪一个