Class:(一定要配 Run On Server)
resultSet TestDirectSQLTwo()
{
{
connection con=new connection();
statement stm=con.createStatement();
SqlStatementExecutePermission sqlStatementExecutePermission;
ResultSET R,R1;
statement stm=con.createStatement();
SqlStatementExecutePermission sqlStatementExecutePermission;
ResultSET R,R1;
str 10000 SQL,SQL1;
int i;
itemId itemId;
qty _qty;
;
i = 0;
int i;
itemId itemId;
qty _qty;
;
i = 0;
SQL = "select * from inventtable ";
sqlStatementExecutePermission = new SqlStatementExecutePermission(sql);
sqlStatementExecutePermission.assert();
con.ttsbegin();
sqlStatementExecutePermission = new SqlStatementExecutePermission(sql);
sqlStatementExecutePermission.assert();
con.ttsbegin();
R = stm.executeQuery(SQL);
return R;
// while( R.next())
// {
//
// ItemID = R.getString(1);
// info(Itemid);
// }con.ttscommit();
// pause;
}
return R;
// while( R.next())
// {
//
// ItemID = R.getString(1);
// info(Itemid);
// }con.ttscommit();
// pause;
}
JOB
static void TestDirectSQLTwo(Args _args)
{
AACdltllDemoBcnClass AACdltllDemoBcnClass = new AACdltllDemoBcnClass();
ResultSet rset;
ItemId itemid;
;
rset = AACdltllDemoBcnClass.TestDirectSQLTwo();
while( rset.next())
{
{
AACdltllDemoBcnClass AACdltllDemoBcnClass = new AACdltllDemoBcnClass();
ResultSet rset;
ItemId itemid;
;
rset = AACdltllDemoBcnClass.TestDirectSQLTwo();
while( rset.next())
{
ItemID = Rset.getString(1);
//ItemID = Rset.getString(1);
ItemID = Rset.getString(20);
print Itemid;
}
pause;
}
//ItemID = Rset.getString(1);
ItemID = Rset.getString(20);
print Itemid;
}
pause;
}