问题描述:
rtSQL Server 2005数据库
问题解答:
insert_id() ...或者是 get_insert_id() ...?
select LAST_INSERT_ID();可以查出最新产生的 AUTO_INCREMENT 值insert以后执行查询select last_insert_id();就会返回刚插入的id值。