Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Conditions (SQL 6.5)
Message
De
28/09/1999 10:56:03
 
 
À
21/09/1999 14:49:08
Dave Sonier
Technologies Nter inc.
Gatineau, Québec, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00267277
Message ID:
00269938
Vues:
19
>Hi,
>
>Somebody knows if it is possible to do a condition with an alias column ???
>
>Here's a sample:
>
>select A_NO_AN = BDD.NO_AN from budg_dem_det bdd where A_NO_AN = 1999
>
>I got this error message:
>Msg 207, Level 16, State 2
>Invalid column name 'A_NO_AN'.

If you're assigning the value to a variable, you need to start A_NO_AN as @A_NO_AN. If you want a column named A_NO_AN try:

BDD.NO_AN "A_NO_AN"
from budg_dem_det bdd
where A_NO_AN = 1999
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform