例子1:
运行结果:
docs
------------
xxx
xxx
xxx
例子2:
运行结果:
docs
------------
xxx,xxx,xxx
select nDocId as docs from wf_doc_gw
where nProcId = 64 and nProcStatus=1 and nState=0
and cProcUserList is null
order by nDocId;
运行结果:
docs
------------
xxx
xxx
xxx
例子2:
select wmsys.wm_concat(ndocId) as docs from wf_doc_gw
where nProcId = 64 and nProcStatus=1 and nState=0
and cProcUserList is null
order by nDocId;
运行结果:
docs
------------
xxx,xxx,xxx
本文深入探讨了SQL查询的运用技巧,并通过两个具体实例详细解释了如何使用SQL语句来筛选特定数据。实例1展示了如何使用`select`语句结合`where`条件筛选文档ID和状态;实例2则进一步介绍了使用`wm_concat`函数整合多个文档ID。
1344

被折叠的 条评论
为什么被折叠?



