ORACLE中多表联合查询问题

2025-01-09 09:41:09
推荐回答(2个)
回答1:

请楼主确认一下,CATAGORY(表 或者 视图) 中,是否含有catagoryId这个字段,看错误提示,应该是没有这个字段。请检查是不是字段名字写错了。

回答2:

select cata.catagoryname,productname,percount,storage"from CATAGORY cata ,PRODUCT pro where pro.catagoryID = cate.catagoryID ;
这样为每个表起个别名 看看。要是不行说明估计的表CATAGORY是否存在字段catagoryID还是你的字段写错了。