Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert records from one table to another
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01641338
Message ID:
01641342
Vues:
45
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform