xbrowse y clausula DESC de mysql no concuerda

xbrowse y clausula DESC de mysql no concuerda

Postby goosfancito » Tue Aug 19, 2014 2:00 pm

Hola.
Tengo esto:
Code: Select all  Expand view
#define HISTORIAL "SELECT * from tbhistorial order by tbhistorial.fecha DESC"
...

   DEFINE QUERY ::oQry HISTORIAL

   ::oBrw:= TXBROWSE():new(::oDlg)
    ::oBrw:setdolphin(::oQry,.T., .T., {"id", "fecha", "hora", "obs"} )
 

y me sigue mostrando la fecha pero ordenada de menor a mayor.
Por que puede ser?

gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: xbrowse y clausula DESC de mysql no concuerda

Postby joseluisysturiz » Wed Aug 20, 2014 3:04 am

...prueb asi...saludos.. :shock:

#define HISTORIAL "SELECT * from tbhistorial order by fecha DESC"
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: xbrowse y clausula DESC de mysql no concuerda

Postby goosfancito » Wed Aug 20, 2014 11:23 am

joseluisysturiz wrote:...prueb asi...saludos.. :shock:

#define HISTORIAL "SELECT * from tbhistorial order by fecha DESC"


ya probe amigo. y me salta el mismo error.

Code: Select all  Expand view
Error occurred at: 20/08/2014, 08:23:06
   Error description: Error MYSQL/1054  Unknown column 'fecha' in 'order clause'
   Args:


lo raro que ASC si me funciona, o sea orden ascendente funciona pero DESC nones. y en el mysql con la aplicacion del mysql ya probe y si funciona.
tal cual como vos me puusiste arriba, funciona y de 10, pero desde mi applicacion no.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests