开发者

Regular Expression library/set to parse sql

Anyone know of any re libraries out there to help parse columns, functions, and values from an SQL WHERE clause?

Example strings:

COLUMN=='VALUE'
COLUMN=='VALUE' AND COLUMN2='VALUE'
FUNCTION(COLUMN)==FUNCTION('VALUE')

I'm working in Python, but can port most anything over...开发者_运维问答


Perhaps this SO question and its answers will help (Parsing SQL with Python).

Here are a couple of links that may help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜