Solved

SQL Parsing algorithm

Posted on 2002-03-06
6
770 Views
Last Modified: 2012-06-21
Now I try create some SQL builder.
And for this I need Paresing SQL statements and for this I need some algorithm.

Can anybody help me?
0
Comment
Question by:avr555
  • 2
  • 2
  • 2
6 Comments
 
LVL 4

Expert Comment

by:ct.smith
ID: 6844754
The book "lexx & yacc" (O'Reilly Press) has the complete code for an SQL parser.
0
 

Author Comment

by:avr555
ID: 6847182
Have you ane URL to find this book in electronical view?
0
 
LVL 4

Expert Comment

by:ct.smith
ID: 6848086
No, but its not all that expensive and relatively easy to find at bookstores.  It's also been around a while, so there's a chance that you may be able to borrowa copy from a library, friend, coworker, etc.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Expert Comment

by:Kim Ryan
ID: 6851715
Of course the publisher will not give away their contents for free. But they do supply program code. Download http://examples.oreilly.com/lex/progs.zip and study sql1.y, sql2.y and sqltext.c

There is also a Perl based SQL parser at http://www.cpan.org/modules/by-module/SQL/SQL-Statement-1.003.tar.gz
0
 
LVL 19

Accepted Solution

by:
Kim Ryan earned 100 total points
ID: 6855868
0
 

Author Comment

by:avr555
ID: 6856820
Sorry, I Need more theory about this.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is about my first experience with programming Arduino.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question