10 October 2006
Arguments:
rc = sqlprepare(s1,"select ename, empno, empaddr from emp") rc = sqlopen(s1) Do Forever rc = sqlfetch(s1) If rc < 0 Then Abort() If rc = 0 Then Leave Do i = 0 rc = sqlgetdata(s1,'ename',(i*100)+1,100) If rc < 0 Then Abort() If rc = 0 Then Leave Say 'Column: ename:' s1.ename End rc = sqlgetdata(s1,'empaddr',,,'/tmp/empaddr.txt') End |