Re: [gnome-db] GdaSqlQuery: sub-queries
Murray Cumming <[email protected]>
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <1277280017.3077.30.camel@murrayc-desktop> |
On Wed, 2010-06-23 at 09:49 +0200, Piotr Pokora wrote: > Hi! > > >>> So with GdaSqlBuilder, is there any way to use a sub-query as the > >>> target? gda_sql_builder_select_add_target_id() seems to be only for > >>> specifying tables as targets: > >>> http://library.gnome.org/devel/libgda/unstable/GdaSqlBuilder.html#gda-sql-builder-select-add-target-id > > > > It's possible using gda_sql_builder_select_add_target_id() with a > > minor correction I've made, > > see http://git.gnome.org/browse/libgda/commit/?id=9b8778a08ffad208d8da159643b38d0f61482c6b > > Is it possible to do this in 4.0.x without GdaSqlBuilder? I'm sure it's possible if you just write the correct SQL. All GdaSqlBuilder does is help you to write the SQL. > If not, can I just create SQL string and parse later? I don't understand this part. -- [email protected] www.murrayc.com www.openismus.com