MARIADB cSELECT?

MARIADB cSELECT?

Postby goosfancito » Sun Feb 27, 2022 8:11 pm

Hola.

Como hago para ver cual fue el cSELECT que genera esta instrucción?

Code: Select all  Expand view
     TEXT into cSql
      Select
      a.idcarpeta  AS c1,
      a.idusuario  AS c2,
      a.habilitado AS c3
      FROM tbasignado AS a
      WHERE a.idcarpeta = ? AND a.habilitado = ?
      ENDTEXT

      oQry := ::oCnx:QUERY( cSql, { ::nId, 1 } )
 


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: MARIADB cSELECT?

Postby vilian » Mon Feb 28, 2022 11:10 am

Try it:

? oQry:source
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 977
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: MARIADB cSELECT?

Postby goosfancito » Mon Feb 28, 2022 11:23 am

Gracias!

y para ver el contenido de FILTER? porque ? ::oQry:source no me muestra el filtro aplicado.
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: MARIADB cSELECT?

Postby vilian » Mon Feb 28, 2022 11:27 am

cFilter := oQry:cFilter
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 977
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: MARIADB cSELECT?

Postby nageswaragunupudi » Wed Mar 02, 2022 2:58 am

Como hago para ver cual fue el cSELECT que genera esta instrucción?

Code: Select all  Expand view
oRs := oCn:RowSet( cSql, aParams )
? oRs:cLastSQL
// OR
XBROWSER oRs:aSql  // last 10 sql statements executed
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 48 guests