3 SQL::Abstract::Manual::Specification
7 These are the examples for the AST
11 The following are example SQL statements and the AST that would represent each
12 one. The SQL used is from the MySQL dialect.
20 ast_version => 0.0001,
23 type => 'SelectComponent',
33 =item * SELECT NOW() AS time FROM dual AS duality
37 ast_version => 0.0001,
40 type => 'SelectComponent',
52 type => 'TableIdentifier',
61 =item * SELECT 1 FROM foo LEFT OUTER JOIN bar ON ( foo.col1 = bar.col2 )
65 ast_version => 0.0001,
68 type => 'SelectComponent',
81 type => 'TableIdentifier',
88 type => 'TableIdentifier',
100 type => 'Identifier',
105 type => 'Identifier',
114 =item SELECT * FROM foo WHERE name = 'John'
118 ast_version => 0.0001,
121 type => 'SelectComponent',
130 type => 'TableIdentifier',
132 type => 'Identifier',
141 type => 'Identifier',
157 robkinyon: Rob Kinyon C<< <rkinyon@cpan.org> >>
161 You may distribute this code under the same terms as Perl itself.