[Gambas-user] Question about gb.db

Jean-Yves F. Barbier 12ukwn at ...626...
Fri Aug 14 19:26:04 CEST 2009


Charlie Reinl a écrit :
> Salut,
> 
> till now I use the Request part in $hConn.Find to set my sorting 
> "Order by"
> Is there a better/easier way, which I ignore ?

Salut Charlie,

Yes there's one: include your sort into the query.

Query = "SELECT a,b,c FROM mytable WHERE a = 'test' ORDER by b;"
(well at least in PostgreSQL)

But may be that's not what you're looking for.

JY
-- 
What this country needs is a dime that will buy a good five-cent bagel.




More information about the User mailing list