07.10.2014, 23:33
If the ID column is auto incrementing you can use cache_insert_id()
The example from the wiki uses a threaded query but that isn't required. You can use an unthreaded query as well like so:
The example from the wiki uses a threaded query but that isn't required. You can use an unthreaded query as well like so:
pawn Код:
new Cache:cache = mysql_query(con, "INSERT INTO mytable (myColumn) VALUES (myValue)");
new insertID = cache_insert_id();
cache_delete(cache);