From: Rob Kinyon Date: Thu, 26 Mar 2009 01:35:17 +0000 (-0400) Subject: Added example of simple WHERE clause X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c604aebde16a36b43fe5608311ef27978ca778e;p=dbsrgits%2FSQL-Abstract-2.0-ish.git Added example of simple WHERE clause --- diff --git a/lib/SQL/Abstract/Manual/Examples.pod b/lib/SQL/Abstract/Manual/Examples.pod index b330757..d6f3caa 100644 --- a/lib/SQL/Abstract/Manual/Examples.pod +++ b/lib/SQL/Abstract/Manual/Examples.pod @@ -111,6 +111,45 @@ one. The SQL used is from the MySQL dialect. }, } +=item SELECT * FROM foo WHERE name = 'John' + + { + type => 'select', + ast_version => 0.0001, + select => [ + { + type => 'SelectComponent', + value => { + type => 'Value', + subtype => 'number', + value => 1, + }, + }, + ], + tables => { + type => 'TableIdentifier', + value => { + type => 'Identifier', + element1 => 'foo', + }, + }, + where => { + type => 'Operator', + op => '=', + args => [ + { + type => 'Identifier', + element1 => 'name', + }, + { + type => 'Value', + subtype => 'String', + element1 => 'John', + }, + ], + } + } + =back =head1 AUTHORS