日期:2014-05-16  浏览次数:20719 次

如何取得update了record的primary key id?
update   test   set   sex= 'M '   where   name= 'john '

table:
id   name   sex
1     john   F
2     may     M
如何知道john这个record的id?谢谢

------解决方案--------------------
select last_insert_id();