Related articles |
---|
Parsing some but not all of SQL 3328749@sina.com (GuaGuaHuang) (2002-09-25) |
Re: Parsing some but not all of SQL Mark.van.den.Brand@cwi.nl (M.G.J. van den Brand) (2002-10-13) |
Re: Parsing some but not all of SQL surgeonde@yahoo.de (Hannes liesen) (2002-10-13) |
From: | "GuaGuaHuang" <3328749@sina.com> |
Newsgroups: | comp.compilers |
Date: | 25 Sep 2002 23:57:43 -0400 |
Organization: | Bentium Ltd. (CN99) |
Keywords: | parse, SQL |
Posted-Date: | 25 Sep 2002 23:57:43 EDT |
I am using yacc&lex to analysis a SQL batch. I only want to find out
the SELECT statements in the batch and make some transformation to
them. Other statements will not be changed.
Must I write a full syntax of SQL, or are there some other simple
ways?
[Since it's usually pretty simple to find the statement boundaries in SQL,
you can probably look at the first token of each statement, if it's
SELECT parse it and change it, if not just skip up to the next statement.
-John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.