
mysql查询,一个商品表,有部门id,商品名称product,查询仅仅被部门id为1购买的商品
1个回答
展开全部
这不是很简单吗?如果商品不区分购买或未购买的话,直接加个where条件按部门查啊。
select id, product from [table name] where id = [部门id]
select id, product from [table name] where id = [部门id]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |