sqlselect语句查询的时候增加⼀个字段到结果⾥,
为了避免联表查询,需要在sql语句结果中增加⼀个字段:
原sql语句为:
select c.* from (select rownum as r,b.* from (select t.,t.,t.,t.,t.,t.user_id_encrypt,t.,t.create_time,t.,t.,t.,a.user_type from
T_WIKI_DOC_POSTS t inner join t_wiki_user a on t.user_id_encrypt=a.user_id_encrypt where
增加字段的sql语句doc_topics_id_encrypt='bAAReRlFZ,X0NYX1oCA,1lDVw' order by CREATE_TIME )b where rownum<=20)c where c.r>=1修改为:
select c.* from (select rownum as r,b.* from (select t.,t.,t.,t.,t.,t.user_id_encrypt,t.,t.create_time,t.,t.,t., 0 as user_type from T_WIKI_DOC_POSTS t where doc_topics_id_encrypt='jRANBCFgWA1FeA0BGA0AJXA**' order by CREATE_TIME )b where rownum<=20)c where c.r>=1
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论