mysql插入取id

cmd.ExecuteNonQuery();
long id = cmd.LastInsertedId;

 

 
posted @ 2016-08-16 15:39  木小楠  阅读(172)  评论(0)    收藏  举报