SQL多表查询出错(Column 'did' in field list is ambiguous)
select dishId,count,( select title from wds_dishes where did=did limit 1 ) as title from wds_shopping_cart inner join wds_dishes on did=did where uid=1
现有两张表:
购物车表wds_shopping_cart
菜品信息表wds_dishes
现想...
原创
2018-11-07 15:42:40 ·
1276 阅读 ·
0 评论