Performs an insertion query and returns the last inserted row id
int MySQLConnection:insert([function callback, ] string query [, ...optionalParameters])
int - Last row id or false if something went wrong
local row_id = connection:insert("INSERT INTO test_table (name) VALUES (?)", {"omaigawd2"}) if row_id ~= false then print("Received row id: "..tostring(row_id)) end
There was an error while loading. Please reload this page.