我是 regx 的新手...我想使用正则表达式从给定查询中获取子查询。
例如我有如下查询
Select * from (
select * from Table_A where ID = 90
UNION
select * from Table_B where ID = 90
) as SUBQUERY left join TABL_ABC abc ON (abc.id = SUBQUERY.id)
现在我希望我的正则表达式只匹配以下行:
select * from Table_A where ID = 90
UNION
select * from Table_B where ID = 90
请帮助我,提前谢谢你...