dargis05 has asked for the wisdom of the Perl Monks concerning the following question:
when run for $sqla works fine:#!/usr/bin/perl use SQL::Statement; my $sqla = "update abc set a = 's' where a = 't' and amnt > 100"; my $sqlb = "update abc t set t.a = 's' where t.a = 't' and t.amnt > 1 +00"; my $parser = SQL::Parser->new(); $parser->{RaiseError}=1; $parser->{PrintError}=1; my $stmt = SQL::Statement->new($sqlb,$parser); my $columns = $stmt->column_defs() ; printf "Command %s\n",$stmt->command;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SQL::Parser and table aliases
by JavaFan (Canon) on Apr 11, 2011 at 20:24 UTC | |
|
Re: SQL::Parser and table aliases
by mellon85 (Monk) on Apr 11, 2011 at 20:24 UTC |