Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8704

Re: Populate variables or parameters from a database table

$
0
0

Shive -

Awesome.  As you can tell, I am new to this.

Two follow up questions:

 

1. Is there a specific reason you assign first variable $L_Val, and then $P_INPUT?

 

Or can I directly do:   $$myFileName = SELECT FileName FROM sysParams WHERE Client='X';

 

2. Can I substitute another variable inside the SQL statement, something like:

 

$$FileName = SELECT FileName FROM sysParams WHERE Client= $gClientID;

 

 

I think I might create a custom function, since I always will need a set of parameters to populate.


Viewing all articles
Browse latest Browse all 8704

Trending Articles