Y
yeser_macao
Unregistered / Unconfirmed
GUEST, unregistred user!
XY_product_code:= MemData_XY.FieldByName('product_code').asstring;<br> XY_unit_cost:= MemData_XY.FieldByName('unit_cost').asfloat;<br> with d_product_cost_XY_insert do<br> begin<br> close;<br> sql.Clear ;<br> sql.Add ('insert d_product_cost (unit_code,product_code,unit_cost,cl_cost,jg_cost,sell_cost,o_date,o_name,');<br> sql.Add ('weight_cost,weight_cost_1,cost_4,cost_5,cost_6,cost_7,cost_8)');<br> sql.Add ('values ("XY",:XY_product_code,:XY_unit_cost,0,0,0,null,null,0,0,0,0,0,0,0)');<br> parambyname('XY_product_code').asstring :=XY_product_code ;<br> parambyname('XY_unit_cost').asfloat :=XY_unit_cost ;<br> prepare;<br> execsql;<br> end;<br><br>执行时候,提示:EDBDngineError with message'Invalid use of keyword.Token:d_product_cost Line Number:1'.process stopped.Use Step or Run to continue<br><br>这个表里(d_product_cost 有一个ordinal_number 字段为自动增加的,没有包含在语句里