Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert records from one table to another
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01641338
Message ID:
01641342
Views:
44
Maybe some columns outside of the list do not allow nulls and don't have defaults?

>
>I am trying to insert records (only certain fields) from one table to another and I tried the following syntax (which does not work):
>
>
>insert into MyTable1( field1, field2, field3) select field1, field2, field3 from MyTable2 
>
>
>Note that I want to insert ALL records from the MyTable2 into MyTable1.
>
>What am I doing wrong?
>
>TIA
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform