delphi cxgrid明细新增第三行的报错【Key violation】

明细的adsdetail的语句不要用

select * from g_billd_fulpd_pos where 1=1 and scripno='+ QuotedStr(cCond),

而要具体列出字段

select scripno,c_yuanl,colorid,spec,amount,price,sale,c_danw,notes from g_billd_fulpd_pos where 1=1 and scripno='+ QuotedStr(cCond)

猜你喜欢

转载自www.cnblogs.com/linjincheng/p/12550488.html