![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? |
#3
| |||
| |||
|
|
On 1/28/2011 6:57 PM, SpreadTooThin wrote: If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? http://www.lmgtfy.com/?q=mysql+insert+id |

|
-- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstuck... (AT) attglobal (DOT) net ================== |
#4
| |||
| |||
|
|
On Jan 28, 5:19 pm, Jerry Stuckle<jstuck... (AT) attglobal (DOT) net> wrote: On 1/28/2011 6:57 PM, SpreadTooThin wrote: If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? http://www.lmgtfy.com/?q=mysql+insert+id lol.. You suck. ![]() |
#5
| |||
| |||
|
|
If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? |
#6
| |||
| |||
|
|
On Fri, 28 Jan 2011 15:57:25 -0800 (PST), SpreadTooThin wrote: If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? We already covered that yesterday, if you read back in your own prior thread. -- 53. If the beautiful princess that I capture says "I'll never marry * * you! Never, do you hear me, NEVER!!!", I will say "Oh well" and * * kill her. * * * * --Peter Anspach's list of things to do as an Evil Overlord |
#7
| |||
| |||
|
|
On 1/28/2011 8:13 PM, SpreadTooThin wrote: On Jan 28, 5:19 pm, Jerry Stuckle<jstuck... (AT) attglobal (DOT) net> *wrote: On 1/28/2011 6:57 PM, SpreadTooThin wrote: If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? http://www.lmgtfy.com/?q=mysql+insert+id lol.. You suck. ![]() Then try googling your own answers next time. *Or if you're too lazy, pay a consultant to answer your questions for you. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstuck... (AT) attglobal (DOT) net ================== |
#8
| |||
| |||
|
|
On Jan 28, 7:31*pm, "Peter H. Coffin" <hell... (AT) ninehells (DOT) com> wrote: On Fri, 28 Jan 2011 15:57:25 -0800 (PST), SpreadTooThin wrote: If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? We already covered that yesterday, if you read back in your own prior thread. -- 53. If the beautiful princess that I capture says "I'll never marry * * you! Never, do you hear me, NEVER!!!", I will say "Oh well" and * * kill her. * * * * --Peter Anspach's list of things to do as an Evil Overlord Thanks I found it:http://dev.mysql.com/doc/refman/5.0/...unique-id.html |
#9
| |||
| |||
|
|
On Jan 28, 6:33 pm, Jerry Stuckle <jstuck... (AT) attglobal (DOT) net> wrote: On 1/28/2011 8:13 PM, SpreadTooThin wrote: On Jan 28, 5:19 pm, Jerry Stuckle<jstuck... (AT) attglobal (DOT) net> wrote: On 1/28/2011 6:57 PM, SpreadTooThin wrote: If I add a row to a table that has an auto incremented ID that is a foreign key in another table... How do I get that ID from the last insert statement I generated? http://www.lmgtfy.com/?q=mysql+insert+id lol.. You suck. ![]() Then try googling your own answers next time. Or if you're too lazy, pay a consultant to answer your questions for you. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstuck... (AT) attglobal (DOT) net ================== Thanks for the help Jerry... http://www.velocityreviews.com/forum...y-stuckle.html |
#10
| |||
| |||
|
|
I'm not sure that this will work in my environment... Which is REALBasic. I know this is the comp.database.mysql news group, but is this a SQL neutral statement? |
![]() |
| Thread Tools | |
| Display Modes | |
| |