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.
↧