tags:

views:

45

answers:

2

I've got column Cars with column "Owner".

I has one owner , and he has 10 cars.

Now I've 2 additional person who has the same cars, so I need Add 20 records to my table.

Wiht only one column different:

Something like:

Insert into Cars (NameOfCar,NameOfOwner) 
Select NameOfCar,'"Robert Kubica' Where NameOfOwner='Schumacher'. 

Insert into Cars (NameOfCar,NameOfOwner) 
Select NameOfCar,'"Hakashi Honda' Where NameOfOwner='Schumacher'. 
+6  A: 

I see that you are missing FROM clause in your queries, please try adding it.

Ravia
+1. Good catch :)
shahkalpesh
+2  A: 

You are missing the From clause:

Insert into cars (NameOfCar,NameOfOwner)
Select NameOfCar, 'Hakashi Honda'
From cars
Where NameOfOwner='Schumacher'
Peter Lang