"Gilles" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> =====
> BEGIN;
> INSERT INTO customers (id,name) VALUES (NULL,'John Doe');
> ;How to get ROW_ID?
> INSERT INTO phones (tel,id_customers) VALUES ('1234567',ROW_ID);
> COMMIT;
> =====

INSERT INTO phones (tel,id_customers) VALUES ('1234567',last_row_id());

Igor Tandetnik



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to