INSERT and SELECT
Moderator: General Moderators
INSERT and SELECT
I have an autoincrement and unique id num in a db, and when I insert a field, i want to have the query return the id for that row. Can i do that in a single sql?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
no, but the mysql functions can tell you what ID it set... mysql_insert_id