Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store fields info into one field?
Message
 
À
13/07/2006 16:07:11
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01136213
Message ID:
01136215
Vues:
12
>I want to select the complete last updated record and insert the concatenated info (header + value) into one field. I thing it's possible using a query like this... "select * from inserted for xml auto"... but my question is how can I store the result into a variable (string)?
DECLARE @testStr varchar(8000)

SELECT @testStr = Header + Value FROM .....
print @testStr
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform