que huo deng ji error

2016-07-07 15:06 来源:www.chinab4c.com 作者:ecshop专家

que huo deng ji chu xian wen ti, ni men you mei you zhe ge wen ti

MySQL server error report:Array( [0] => Array ( [message] => MySQL Query Error ) [1] => Array( [sql] => SELECT COUNT(*) FROM `ecshop`.`ecs_booking_goods` AS bg,`ecshop`.`ecs_goods` AS g WHERE bg.goods_id = g.goods_id AND user_id ='5' ) [2] => Array ( [error] => Column 'user_id' in where clauseis ambiguous ) [3] => Array ( [errno] => 1052 ))


shi bu shi user_id yao gai weig.user_id

回答:
是不是有改用程序??

fa xian yuan yin le
liang ge biao you chong tu
shi wo gai le dai ma de yuan yin
jia shang bg.
ke yi le


看你的拼音,看得好累啊...

昨天在linux下scim老是干扰eclipse,给删除了,所以打不出中文

昨天的意思是因为我在商品表加了字段user_id的原因,然后sql不知道是哪个表的user_id
所以代码加上bg.user_id指明下就没问题了,不过我还是尽量不改那个源代码,把商品user_id改为provider_id了
我加个provider_id是为了指定是哪个供应商的产品