如何删除first和last where语句之间的所有字符串 [英] how to remove all string between first and last where statements

查看:50
本文介绍了如何删除first和last where语句之间的所有字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有sql查询,其中有多个where子句。我的任务是删除之间的所有字符,因为我的sql在一些标签中。我怎么能从c#那里做到这一点。请尽快帮助。



谢谢和快乐的编码

i have sql query which has multiple where clauses. my task is to remove all characters between as my sql is in some lable. how can i do that from c#. please help asap.

thanks and happy coding

推荐答案

虽然我没有你的目标,正如我所见,你需要一个语句解析器。尝试从这里开始: SQL Parser [ ^ ]。您可能需要修改代码,但这是一个很好的起点。
Although I haven''t got your goals, as I see, you need a statement parser. Try to start here: SQL Parser[^]. You will probably need to modify the code, but it is a good starting point.


这篇关于如何删除first和last where语句之间的所有字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆