PSS ID Number: 160735
Article Last Modified on 1/7/2000
create table test(col1 int)
insert test values(10)
HKEY_LOCAL_MACHINE\Software\Microsoft\MerchantServer\Stores\
Clockped\Constants
insert clockped_sql values('querysubst','select * from #mytable')
Note that "##" will be converted into "#" in query strings. Also, if
your query string contains #xxx (where xxx is equal to one of the
constants), the #xxx value will be replaced with that constant's value.
In the SQL query above, '#mytable' will be replaced by 'test.'
<br>Testing the constant 'mytable' in a query:<br>
[fetchrows results "querysubst"]
There are [value results.count] row(s) in "[value const.mytable]"
table<br>
and the first row is:[eachcolvalue results]
[value results.colvalue]
[/eachcolvalue]<br><br>
Testing the constant 'mytable' in tfetchcrows:<br>
[tfetchrows results2 const.mytable]
There are [value results2.count] row(s) in "[value const.mytable]"
table<br>
and the first row is:[eachcolvalue results2]
[value results2.colvalue]
[/eachcolvalue]<br>
http://<computer name or IP address>/prd.i/pgen/clockped
/0L/welcome.html
Keywords: KB160735
Technology: kbAudDeveloper kbMerchServ100 kbMerchServSearch