Posted by Erland Sommarskog on 08/20/07 21:54
Roy Harvey (roy_harvey@snet.net) writes:
> If I understand your question, you want to insert the data from table
> test into an already existing table.
>
> INSERT existingtable
> SELECT a, b
> FROM test
I guess it should be:
INSERT existingtable
SELECT 10 + a, b
FROM test
since Salish wanted to change the values.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|