EXEC SQL. “连接数据库,此名称在ST04-数据库连接中可看
connect to ‘READ‘
ENDEXEC.
EXEC SQL. “设置连接
set connection ’READ’
ENDEXEC.
EXEC SQL. “执行SQL,可在此附加PERFORMING参数实现多条查询
<NATIVE SQL statement> “NATIVE SQL语句
ENDEXEC.
EXEC SQL. “断开连接
DISCONNECT 'READ'
ENDEXEC.
PS:SQL执行语句,可以放置在循环体中