Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining constants
Message
De
12/10/2001 14:28:10
 
 
À
11/10/2001 22:16:48
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00566957
Message ID:
00567865
Vues:
16
>>I'm not sure how well that would work. Values in the table need to be returned in a result or result set at the beginning of each procedure.
>
>Sure it would work.
>
>CREATE TABLE constants (
> OneItemDisc float,
> TenItemDisc float)
>
>Inside a stored procedure, you could do something like this:
>
>DECLARE @OneItemDisc float, @TenItemDisc float
>
>SELECT
> @OneItemDisc = OneItemDisc,
> @TenItemDisc = TenItemDisc
>FROM
> constants
>
>...
>
>-Mike


Oh, I thought he might be trying to get it to work like an Automatic variable. like @@Rowcount. The only reason I say it, is because I once wished I could create some constants globally to just access as needed in any procedure. Is there a way to do it.

Thanks
Respectfully (as you guys answer most of my questions too!)
Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform