1、查询‘zq_bd_invclass_views’中的ID是引用了表'zq_bd_invclass'的ID,表中ID是设置了主键的,查询中ID没有,但查询中ID需要设置主键吗?怎么设置呢?
2、附查询语句如下:
SELECT zq_bd_invclass."PK_CORP",
zq_bd_invclass."NAME",
zq_bd_invclass."INVCLASSCODE",
zq_bd_invclass."INVCLASSNAME",
zq_bd_invclass."ID",
nc_bd_corp.UNITNAME
FROM zq_bd_invclass
join nc_bd_corp
on zq_bd_invclass.pk_corp = nc_bd_corp.pk_corp;
|