Search found 33 matches: queryresult

Return to advanced search

Re: FWMariab oCn:QueryResult()

Muchas gracias Mr. Rao

Perdón que me equivoqué y puse el tema en el foro en Inglés.

Saludos :D
by jose_murugosa
Wed Oct 02, 2024 9:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWMariab oCn:QueryResult()
Replies: 2
Views: 154

Re: FWMariab oCn:QueryResult()

Use
Code: Select all  Expand view  RUN
aResult := oCn:Execute( cScript )


aResult is always a two dimensional array
by nageswaragunupudi
Tue Oct 01, 2024 5:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWMariab oCn:QueryResult()
Replies: 2
Views: 154

FWMariab oCn:QueryResult()

Si hago una consulta de una tabla con QueryResult, Query result puede devolver una matriz si la consulta devuelve más de un registro, pero también podría devolver un vector o array de una dimensión si solo contiene un registro. Ejemplo: cScript ...
by jose_murugosa
Tue Oct 01, 2024 5:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWMariab oCn:QueryResult()
Replies: 2
Views: 154

Re: FWH64 : ERROR SE SALE DEL SISTEMA

Antonio, lo cambie de esta forma

if oServer:ping()
IsQry:= oServer:QueryResult("Select 1")
Else
lConn := .F.
Endif

y descomente HB_GCALL( .F. ) // limpiamos la memoria

y si trabaja sin problema, pero con las lib que enviastes no he probado con las lib de la descarga
by CARLOS ATUNCAR
Fri Aug 23, 2024 4:28 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWH64 : ERROR SE SALE DEL SISTEMA
Replies: 33
Views: 4400

Re: Question about performance RowSet

I am try this: Code: aRow := oCn:QueryResult( "select field1,field2 from states where code='WA'" ) if aRow == NIL // not found, then inserts aRow := { "aa","bb" } oCn:Upsert( "states", nil, { aRow } ...
by nageswaragunupudi
Wed Mar 20, 2024 3:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 6358

Re: Question about performance RowSet

... ) We get the data in a multi-dimensional array. In case we need the structure, call this immediately aStruct := oCn:Execute() QueryResult This is an extension to Execute. if we use an sql like "select age from customer where id = 100" this function returns 58, instead ...
by Eroni
Wed Mar 20, 2024 1:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 6358

Re: Question about performance RowSet

... ) We get the data in a multi-dimensional array. In case we need the structure, call this immediately aStruct := oCn:Execute() QueryResult This is an extension to Execute. if we use an sql like "select age from customer where id = 100" this function returns 58, instead ...
by nageswaragunupudi
Sat Mar 16, 2024 10:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 6358

Re: Question about performance RowSet

podria ser que: oCn:QueryResult( "select field1, field2 to my table where field3 = 'x' " ) // 0.21 seconds retorna un arreglo simple de datos y que oCn:Rowset( "select field1, field2 to my table where field3 ...
by Eroni
Fri Mar 15, 2024 1:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 6358

Re: Question about performance RowSet

podria ser que: oCn:QueryResult( "select field1, field2 to my table where field3 = 'x' " ) // 0.21 seconds retorna un arreglo simple de datos y que oCn:Rowset( "select field1, field2 to my table where field3 ...
by carlos vargas
Fri Mar 15, 2024 3:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about performance RowSet
Replies: 19
Views: 6358

Re: FWMariaDb- tengo un error

espero que este ejemplo aclare lo que quieras obtener aVerultpr:=MEMVAR->oConex:QueryResult("SELECT B.feccpg,A.precio,A.undmed FROM movimdet AS A "+; "LEFT JOIN movimmov AS B ON B.tipcpg=A.tipcpg AND B.sercpg=A.sercpg AND B.nrocpg=A.nrocpg "+; ...
by cjcardoza
Mon Jun 12, 2023 6:30 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWMariaDb- tengo un error
Replies: 2
Views: 236

Re: New FTDN April/Abril 2023 (FWH 23.04)

De Enero a Abril de 2023 ======================== * FWMariaConnection: - Método QueryResult( cSql ) mejorado a QueryResult( cSql, [aParams] ) * Nueva función JsonView( cJsonText/File, [cTitle] ) * La función FW_CopyToClipBoard( uValue, [nFormat] ) --> lSucess ...
by Antonio Linares
Thu May 04, 2023 6:37 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2023 (FWH 23.04)
Replies: 4
Views: 3027

New FTDN April/Abril 2023 (FWH 23.04)

January to April 2023 ====================== * FWMariaConnection: - Method QueryResult( cSql ) enhanced to QueryResult( cSql, [aParams] ) * New Function JsonView( cJsonText/File, [cTitle] ) * function FW_CopyToClipBoard( uValue, [nFormat] ) --> lSucess now ...
by Antonio Linares
Tue May 02, 2023 7:08 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2023 (FWH 23.04)
Replies: 4
Views: 3027

Re: Problema con la Clase FWmariadb

... BY m.matricula" ) //{{'Carloss vargas', 'Managua', '(505) 8888-8888', 'A01' },{'Ivan Sanchez', 'Masaya', '(505) 9999-9999', 'B01' }} QueryResult, fue pensada para obtener resultados de consultas que retornen un valor cNombre  := oCn:ResultQuery( "SELECT a.nombre from cliente ...
by carlos vargas
Wed Jul 27, 2022 7:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema con la Clase FWmariadb
Replies: 2
Views: 409

Problema con la Clase FWmariadb

tengo un array bidimensional donde filtro registros Si ejecuto este comando de la clase aDatos1:=oCn:QueryResult( "SELECT m.id, m.matricula FROM matriculas AS m ORDER BY m.matricula" ) Si la tabla tiene un solo registro, aDatos[1]es un array unidimensional con m.id ...
by jose_murugosa
Tue Jul 26, 2022 4:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema con la Clase FWmariadb
Replies: 2
Views: 409

Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )

... of records OR aData := oCn:Execute( cSql ) ? Len( aData ) // number of recods If you want only the number of records but not the data simply ? oCn:QueryResult( "select count(*) from tbprod " ) // number of records
by nageswaragunupudi
Wed Oct 06, 2021 3:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Replies: 76
Views: 33063
Next

Return to advanced search