常用於查找字段的中文名.
避免多次left join
使用以下方法
select sbxx.*,(SELECT zdmc from B_QJ_ZDX where zdlxbm ='SBLX' and zdbm= sbxx.sblx) as lxmc
from B_GIS_SBXX sbxx;
常用於查找字段的中文名.
避免多次left join
使用以下方法
select sbxx.*,(SELECT zdmc from B_QJ_ZDX where zdlxbm ='SBLX' and zdbm= sbxx.sblx) as lxmc
from B_GIS_SBXX sbxx;