a:1:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:24:"fv2_billing_invoice_grid";s:4:"nome";s:0:"";s:4:"tipo";s:0:"";s:5:"parms";s:0:"";s:6:"codigo";s:947:"$clear_table = 'DROP TABLE fairlanevrtx2.invoice';
$create_table = 'CREATE TABLE fairlanevrtx2.invoice LIKE fairlanevrtx.invoice';
sc_exec_sql($clear_table);
sc_exec_sql($create_table);
$clear_table = 'Truncate table fairlanevrtx2.invoice';
$import_table = 'INSERT INTO fairlanevrtx2.invoice SELECT * FROM fairlanevrtx.invoice';
sc_exec_sql($clear_table);
sc_exec_sql($import_table);

$clear_table = 'DROP TABLE fairlanevrtx2.item';
$create_table = 'CREATE TABLE fairlanevrtx2.item LIKE fairlanevrtx.item';
sc_exec_sql($clear_table);
sc_exec_sql($create_table);
$clear_table = 'Truncate table fairlanevrtx2.item';
$import_table = 'INSERT INTO fairlanevrtx2.item SELECT * FROM fairlanevrtx.item';
sc_exec_sql($clear_table);
sc_exec_sql($import_table);
$clear_out=
"
DELETE FROM invoice WHERE (invoice<'09546')
";
sc_exec_sql($clear_out);

$clear_out=
"
DELETE FROM item WHERE (invoice<'09546')
";
sc_exec_sql($clear_out);";}}