Re: [gnome-db] GdaSqlQuery: sub-queries
- From: Vivien Malerba <vmalerba gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gnome-db-list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] GdaSqlQuery: sub-queries
- Date: Wed, 12 May 2010 12:36:37 +0200
On 12 May 2010 12:25, Murray Cumming <murrayc murrayc com> wrote:
> In Glom I have a generic function like so:
> int count_rows_returned_by(const std::string& sql_query)
> {
> std::string query_count =
> "SELECT COUNT (*) FROM ("
> + sql_query
> + ") AS glomarbitraryalias";
> ...
> }
>
> 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
>
I'll check this ASAP.
Vivien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]