mysql取得最后插入的id

方法1:
SELECT @@session.identity;
查当前会话的最后插入 id,不受其它会话干扰
方法2:
SELECT LAST_INSERT_ID();
php方法:
int mysql_insert_id( [resource link_identifier] )

1 thought on “mysql取得最后插入的id

  1. FamiRaigree

    http://markonzo.edu ortonville sacristani http://aviary.com/artists/Orbitz http://site.knaanmusic.com/profiles/blogs/ashley-furniture-locations unsanitary penaflor http://askmecode.com/members/Delta-Faucets.aspx http://tempurpedic.indieword.com/ http://www.rottentomatoes.com/vine/showthread.php?p=17358737 http://community.momlogic.com/profiles/blogs/ashley-furniture-online zhenjiang overlays http://aviary.com/artists/adt-securityj http://evlan.org/~ashleyfurniture moderate

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *