该字段太小,无法接受您要添加的数据。尝试插入或粘贴较少的数据

时间:2015-02-11 07:15:17

标签: ms-access-2007

SELECT net1.hhid, net1.prod_price, net2.seed, net3.lph_labour, net4.crop_labour, net5.fer_cost, net6.pes_cost, net7.seed_labour, net8.irr_cost,

(net2.seed+net3.lph_labour+net4.crop_labour+net5.fer_cost+net6.pes_cost+net7.seed_labour+net8.irr_cost) AS cost,

 (net1.prod_price-cost) AS net_profit

FROM net1, net2, net3, net4, net5, net6, net7, net8

WHERE net1.hhid=net2.hhid And net1.hhid=net3.hhid And net1.hhid=net4.hhid And net1.hhid=net5.hhid And net1.hhid=net6.hhid And net1.hhid=net7.hhid And net1.hhid=net8.hhid And net1.country=net2.country And net1.country=net3.country And net1.country=net4.country And net1.country=net5.country And net1.country=net6.country And net1.country=net7.country And net1.country=net8.country;

错误消息指出

  

字段太小,无法接受您尝试添加的数据量。尝试插入或粘贴较少的数据

我的代码出了什么问题?我需要将net1的列值添加到8个查询中,其中hhid和country应该相等。

0 个答案:

没有答案