ZQuery execute sql
Posted: 08.01.2009, 05:23
Dear all,
Just simply,
does zquery can execute multiple statement in single sql.text ?
for example :
Here the SQL statements :
create temporary table if not exists t_purchase_order
(
po_number varchar(30) not null,
po_item_number varchar(30) not null,
po_date date,
vendor_code varchar(20) default '',
stock_code varchar(40) default '',
delivery_date date,
plant varchar(20) default '',
warehouse_code varchar(20) default '',
po_quantity double precision default 0,
uom_code varchar(20) default '',
pr_number varchar(30) default '',
pr_item_number varchar(30) default '',
pr_date date,
po_type varchar(2) default '',
currency varchar(4) default '',
unitprice double precision default 0,
department varchar(40) default '',
actual_delivery_date date,
remark text,
create_date datetime null,
update_date datetime null,
uname varchar(20) default '',
constraint pk_purchase_order primary key (po_number, po_item_number)
);
delete from t_purchase_order;
and command: zQuery1.ExecSQL;
Thanks
Man'z
6.6.4-stable version
Just simply,
does zquery can execute multiple statement in single sql.text ?
for example :
Here the SQL statements :
create temporary table if not exists t_purchase_order
(
po_number varchar(30) not null,
po_item_number varchar(30) not null,
po_date date,
vendor_code varchar(20) default '',
stock_code varchar(40) default '',
delivery_date date,
plant varchar(20) default '',
warehouse_code varchar(20) default '',
po_quantity double precision default 0,
uom_code varchar(20) default '',
pr_number varchar(30) default '',
pr_item_number varchar(30) default '',
pr_date date,
po_type varchar(2) default '',
currency varchar(4) default '',
unitprice double precision default 0,
department varchar(40) default '',
actual_delivery_date date,
remark text,
create_date datetime null,
update_date datetime null,
uname varchar(20) default '',
constraint pk_purchase_order primary key (po_number, po_item_number)
);
delete from t_purchase_order;
and command: zQuery1.ExecSQL;
Thanks
Man'z
6.6.4-stable version