- 原文:
update t1 set a1=1,b2=2 where c1=3;update t2 set a2=1 where c2=3;update t3 set c3=3;
update t4 set a4=1,
b4=2 where c4=3;
update t5 set
a5=1,
b5=2
where c5=3;
update t6
set
a6=1
where
c6=3;
- 所需文字:
select * from t1 where c1=3;
select * from t2 where c2=3;
select * from t3 ;
select * from t4 where c4=3;
select * from t5 where c5=3;
select * from t6 where c6=3;
答案 0 :(得分:0)
使用正则表达式模式:
查找:update\s+(\S+)\s+set.*?((where)\s+(.*?))?;\s*
替换:select * from $1 $3 $4;\n
检查选项:☑.
匹配换行符
确保您有最新版本的Notepad ++