Hi all,
Im starting with posgresql and i trying to use pg_last_oid to get the last id in a 
insert query, but this function returns me a big number 
like 21318 and bigger, but the table just have 3 or 4 records. Could some one help? 
Any ideas?
This is the script im using
$insert = "insert into test(name) values('myname')";
$test = pg_exec($insert);
echo $id = pg_last_oid($test);

Norma Ramirez

Reply via email to