Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting values into a temporary table
Message
 
À
30/08/2007 11:36:05
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01251389
Message ID:
01251392
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
insert into @outputtable
SELECT DISTINCT BatchID FROM MyTable


>I need to insert values into a temporary table from an SQL call, but for some reason I just can't think of how to do it.
>
>If I declare a temp table called @OutputTable and put one integer field called IntKey in it, how do I fill it with the values from this query: SELECT DISTINCT BatchID FROM MyTable
>
>Thanks!
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform