Data from insert
Posted: 19.10.2008, 17:47
Hi.
Is it possible get data during insert?
At moment I insert something first and then serch (select) it to get id.
Is it possible get data during insert?
Code: Select all
+-------+------------------+-----+-----------------+
| Field | Type | Key | Extra |
+-------+------------------+-----+-----------------+
| id | int(10) unsigned | PRI | auto_increment |
| name | varchar(15) | | |
+-------+------------------+-----+-----------------+
//this returns just 0 or 1, but it would be nice to get actual id
//is it possible?
var id: integer;
.
.
id:=Statement.ExecuteUpdate('INSERT INTO table(name) VALUES "name")');