Dear esteemed friends and other great minds:
in MSSQL I can do the following:
@Project_Owner = 1,
@Project_Name = test_project,
@Project_Id = @@IDENTITY;
INSERT INTO PROJECTS (Project_Owner, Project_Name)
Values (@Project_Owner,
@Project_Name)
SELECT @Project_Id = @@IDENTITY
INSERT INTO USER_XREF (Project_Id,User_Id)
Values (@Project_Id, @Project_owner);
How can I do this in mySQL?
Is there any similar method of getting the id of an inserted record and then using that id in immediate subsequent inserts?
~ OK
"How sweet is mortal Sovranty!"---think some:
Others---"How blest the Paradise to come!"
Ah, take the Cash in hand and waive the Rest;
Heed not the music of a distant Drum!"