Jeremy Morano wrote:
> insert into test (uid, companyUid)
> values(1, select uid from companysTable where company = "Micrsoft");
insert into test (uid, companyUid) select 1,uid from companysTable
where company = "Micrsoft";
I hope this works.
HTH
Wagner
--
Madness takes its toll. Please have
> this doesn't work,how should it be done?
> insert into test (uid, companyUid)
> values(1, select uid from companysTable where company = "Micrsoft");
If you are using MySQL, it doesn't support sub selects...
Chris
2 matches
Mail list logo