all groups > sql server programming > january 2005 >
You're in the

sql server programming

group:

copy field from one table to another


copy field from one table to another Aleks
1/30/2005 11:29:14 PM
sql server programming: I am trying to copy the values of one table to another one:

Select ProdNum, Name,NYUSAPrice,MPN
into ProductsQuartz [ProdNum,Name,Price,MPN]
from productswithprice

Both table already exist, trying to map the fields but I get an error ??

A

Re: copy field from one table to another Aleks
1/30/2005 11:36:50 PM
Also tried:

Insert into
ProductsQuartz ('ProdNum','Name','Price','MPN')
values ('productswithprice.ProdNum',
'productswithprice.Name','productswithprice.NYUSAPrice','productswithprice.MPN')

But I get an error, this are fields from another table in the database, how
can I accoplish this ?

A



[quoted text, click to view]

Re: copy field from one table to another AM
1/31/2005 10:11:16 AM
Hi

Insert into
ProductsQuartz ('ProdNum','Name','Price','MPN')
Select productswithprice.ProdNum,
productswithprice.Name,productswithprice.NYUSAPrice,productswithprice.MPN
from Productswithprice

Hth
[quoted text, click to view]
'productswithprice.Name','productswithprice.NYUSAPrice','productswithprice.M
PN')
[quoted text, click to view]

Re: copy field from one table to another Aleks
2/11/2005 4:17:35 PM
thx
[quoted text, click to view]

AddThis Social Bookmark Button