I need to run the same query(s) on multiple tables. In logic:
table=1
while table <= 3
UPDATE table SET Ledger.YTD = 150;
table=table+1
loop
Hence this statement would be the same as running:
SELECT 1.LOCN INTO testsql
SELECT 2.LOCN INTO testsql
SELECT 3.LOCN INTO testsql
Where 1,2,3 represent table names.
Any assitance is greatly appreciated.
table=1
while table <= 3
UPDATE table SET Ledger.YTD = 150;
table=table+1
loop
Hence this statement would be the same as running:
SELECT 1.LOCN INTO testsql
SELECT 2.LOCN INTO testsql
SELECT 3.LOCN INTO testsql
Where 1,2,3 represent table names.
Any assitance is greatly appreciated.