Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Variable Object Name in Dynamic Cursor - response (1) by thompsonhab

$
0
0

I think I figured it out the second I hit the submit button.
Change from:
SET SqlStr = 'SELECT count(*) FROM '|| '?' || '.AuditLogs ';
To
SET SqlStr = 'SELECT count(*) FROM '|| DBName || '.AuditLogs ';


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>