[thelist] SQL: Insert with Sub Queries

Casey Crookston caseyc at IntelliSoftmn.com
Tue Jun 20 10:14:36 CDT 2006


>>
I would do it like this:
INSERT INTO photos (vehicleID, photo, isMain, sortOrder) SELECT 
vehicleID, vehicleimage, 'Yes', 1 FROM Vehicles<<

Perfect!  Thanks





More information about the thelist mailing list