select * from a b where a.x = wmsys.wm_concat(b.y) and q.id=b.id
参考着看.
璎婲
2024-10-31 13:23:09
这样可以取出来所有的B表数据并且可以和A表对应,假设B表的1,2,3字段名字为Des
SELECT LEFT(des, 1) First FROM TAB UNION ALL SELECT SUBSTR(des,3, 1) Middle FROM TAB UNION ALL SELECT RIGHT(des, 1) Last FROM TAB EXCEPT SELECT RIGHT(DES, 1) FROM TAB WHERE RIGHT(DES, 1) = '' OR SUBSTR(Des, 3, 1) = ' ' Order by 1 后面你知道怎么做的啦。。。