Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper form of INSERT INTO SELECT ...
Message
De
06/02/2002 10:45:57
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Proper form of INSERT INTO SELECT ...
Divers
Thread ID:
00616056
Message ID:
00616056
Vues:
65
I am trying to create an INSTEAD OF INSERT trigger for a view. The base table has an auto-incremented identity column. Intuitively, I would like to write the following statement:
INSERT INTO basetable (col2, col3, col4) VALUES (SELECT col2, col3, col4 FROM Inserted)
Unfortunately, that statement is not allowed in SQL2000. Can anyone suggest the correct way to do this or point me in the right direction?

TIA,

Keith Payne
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform