li_zui 回复 梦想的初衷(提问者)WITH
YSSJ AS (
SELECT 1 SJ,\'J1\' JS FROM DUAL UNION ALL
SELECT 2 SJ,\'J2\' JS FROM DUAL UNION ALL
SELECT 3 SJ,\'J3\' JS FROM DUAL
),
RYJS AS (
SELECT \'01\' YH,\'J1\' JS FROM DUAL UNION ALL
SELECT \'01\' YH,\'J2\' JS FROM DUAL
)
SELECT * FROM YSSJ WHERE JS IN (SELECT JS FROM RYJS WHERE YH = \'01\')