moo.mike.moo has asked for the wisdom of the Perl Monks concerning the following question:
SELECT a, b FROM tbl WHERE c > 10 and d == 5The program should return "a, b, c, and d from table tbl" or something along those lines. I'm using Jeff Zucker's SQL::Statement module but I can get only the columns and tables, not which tables the columns belong to. It also returns a and b but not c and d. However, it does a rather good job at parsing the SQL. Is there any way I can perhaps extend it to do what I want? Thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SQL Parsing
by jZed (Prior) on Jul 10, 2007 at 15:17 UTC | |
|
Re: SQL Parsing
by menolly (Hermit) on Jul 10, 2007 at 17:09 UTC | |
by jZed (Prior) on Jul 10, 2007 at 17:21 UTC | |
|
Re: SQL Parsing
by moo.mike.moo (Initiate) on Jul 11, 2007 at 15:26 UTC | |
by jZed (Prior) on Jul 11, 2007 at 18:21 UTC |