Mysql
 sql >> Database >  >> RDS >> Mysql

MySql Last Inserisci ID, connettore .net

Basta usare il campo LastInsertedId

MySqlCommand dbcmd = _conn.CreateCommand();
dbcmd.CommandText = sqlCommandString;
dbcmd.ExecuteNonQuery();
long imageId = dbcmd.LastInsertedId;