0

I worked on a parser for arithmetic expressions. The key there was building a syntax tree, where leaves are variables and nodes are operators.

Not I'm thinking about parsing SQL queries. Parsing simple select won't be a problem, but I'm not pretty sure about the complex queries. Can you point me to a good reference about sql parsing. Thank you in advance!

3 Answers 3

4

Take a look at the SQL BNF grammars

Sign up to request clarification or add additional context in comments.

Comments

2

Some codesamples: Look at sourceforge Open SQL parser. There was a question for sql parser library before. Look there.

Comments

2

I'm not sure if you know C# or .NET, but LinqToSql basically does this by building expression trees that are then executed only when the query is 'called'.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.