string test = "select * from testtable where id in(select id form table where tid=1)";string _where = Regex.Replace(test, @"\ where\ ", " where (", RegexOptions.IgnoreCase | RegexOptions.Compiled);
我要得到的結(jié)果是 select * from testtable where (id in(select id form table where tid=1)
也就是說遇到的第一個where要替換成 where ( 應(yīng)該怎么寫那個正則???
- 1 回答
- 0 關(guān)注
- 416 瀏覽
添加回答
舉報
0/150
提交
取消