Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert a record in a table, which has identity column
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00757536
Message ID:
00757565
Vues:
20
>>Hi everybody,
>>
>>Sorry for such naive question. If I want to insert data into the table, which has identity column, what can I do?
>>
>>Can I use statement similar to
insert into CreditInfo select * from CWebCreditLoad
, where CreditInfo would have one additional field (identity)?
>>
>>Thanks in advance.
>
>Nadya,
>
>You've to provide the list of columns for your INSERT statement. Sql Server matches columns from SELECT to INSERT by position not by name.

How the statement would look like to preserve identity column?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform