[GRASS5] db.execute and min() max()-SQL-functions

Radim Blazek blazek at itc.it
Wed Jun 30 03:55:07 EDT 2004


db.select

Radim

On Tuesday 29 June 2004 18:41, Stephan Holl wrote:
> Dear developers,
>
> I am trying to figure out my min and max-values of my attribute-date
> stored in PG.
>
> steph at kermit:~ > echo "SELECT min(categorie), max(categorie) FROM
> tk25_9_poly;"|db.execute
> DBMI-Postgres driver error:
> Cannot execute:
> SELECT min(categorie), max(categorie) FROM tk25_9_poly
>
>
> WARNING: Error while executing: "SELECT min(categorie), max(categorie)
> FROM         tk25_9_poly"
>
> Is this not (yet) supported or something else wrong?!
>
> Using psql the same syntax works.
>
> Can somebody point me to the right direction?
>
> Thank you
>
> Stephan Holl




More information about the grass-dev mailing list