开发者

Regular Expression library/set to parse sql

开发者 https://www.devze.com 2022-12-25 17:05 出处:网络
Anyone know of any re libraries out there to help parse columns, functions, and values from an SQL WHERE clause?

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

精彩评论

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