Re: [gnome-db] GdaSqlQuery: sub-queries



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.


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]