Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@@Variable??
Message
De
22/11/2005 17:12:59
 
 
À
22/11/2005 08:25:22
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
01071134
Message ID:
01071338
Vues:
24
>I have come across some SQL code in a legacy database here that uses variables declared as
>
>DECLARE @@ThisVariable Char(25), ... etc.
>
>I have not seen, nor do I find, any reference to a variable so declared in the BOL. I need to update this proceedure, and do not want to cause any problems due to a lack of understanding. Any help is appriciated, as always. :)


This declare the @@ThisVariable local variable.
DECLARE @@ThisVariable Char(25)
SELECT @ThisVariable -- error
This declare the @@@@@@@@@@@@@@@@@@@@@@@@@@@ variable
DECLARE @@@@@@@@@@@@@@@@@@@@@@@@@@@ Char(25)
SELECT @@@@@@@@@@@@@@@@@@@@@@@@@@@
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform