|
变量回答
static number;
table = getvar("testname")&"\\..\\datatable\\批量用户开户.xls";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(table,table_RowCount);
for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)
{
ddt_set_row(table,table_Row);
number = ddt_val(table, "数字") ;
db_execute_query("test","SELECT hrocompany.fcompid FROM dhcihr_product.dbo.hrocompany hrocompany WHERE hrocompany.fcompid = '"&number&"' ",num);
}
ddt_close(table); |
|