a表内容 p_code,p_name
b表内容 p_code,p_sum
sql语句:select a.p_code,b.p_name,a.p_sum from a left join b on a.p_code=b.p_code.
现在在DBGIRD中增加数据,p_name从a表取得,只在b表中增加p_code,p_sum,post后发现B表中也增加了一条记录。
如何只在b表中增加数据
...全文
17019打赏收藏
adoquery+dbgrid问题..
a表内容 p_code,p_name b表内容 p_code,p_sum sql语句:select a.p_code,b.p_name,a.p_sum from a left join b on a.p_code=b.p_code. 现在在DBGIRD中增加数据,p_name从a表取得,只在b表中增加p_code,p_sum,post后发现B表中也增加了一条记录。 如何只在b表中增加数据