Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: How to do a prepared SQL select

$
0
0
Thanks Chris. Am I interpreting the docs right i.e. that you can't do a dynamic select statement without a cursor? I tried this but i couldn't get it to work so I'm assuming select only works when using cursor/fetch in dynamic mode? Is that right? move "select col from table limit 1" to mySQL. exec sql prepare myPreparedSQL from :mySQL end-exec. exec sql execute myPreparedSQL using :myResultVariable end-exec. Is 'using' just for passing parameters in (for '?' markers) rather than getting results back? Thanks, Linden.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



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