首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

查询 中 selectKey有关问题

2012-10-06 
查询 中 selectKey问题select ORGNAME from paOrganization where roleId#roleName# and parentId in (se

查询 中 selectKey问题

select ORGNAME from paOrganization where roleId=#roleName# and parentId in (  select top 1 orgId from paOrganization where roleId=#roleName# and orgUrl=#orgUrl#) and isComp=#isComp#

正常


==========
出场
<select id="getComBtn" resultparameterresult>       select top 1 orgId from paOrganization where roleId=#roleName# and orgUrl=#orgUrl#  </selectKey>    select ORGNAME from paOrganization where roleId=#roleName# and parentId=#parentId# and isComp=#isComp#</select>

热点排行