,"Row count=",%ROWCOUNT
w !...,%ROWCOUNT,%ROWID
&sql(
INSERT INTO SQLUser.MyKids VALUES ('Josie','40100','Fido')
)...例如:
ClassMethod Insert9()
{
n SQLCODE,%ROWCOUNT,%ROWID
&sql(INSERT INTO Sample.Employee VALUES :emp...,"SQL Error code: ",SQLCODE," Row Count: ",%ROWCOUNT
}
使插入的“Employee”行中的每个字段设置为:
emp("profile",col)
其中...下面的示例显示如何将SELECT查询的结果用作INSERT语句的数据输入,从而为多行提供数据:
INSERT INTO StudentRoster (NAME,GPA,ID_NUM)
SELECT