Hello,
Does anyone know how to return the number of records in a SQL-table. Something like reccount() in xHarbour.
Thanks,
Marc
oQry := oSQL:Execute( "select count(*) AS NumberOfRecords from factui" )
oQry := oSQL:Query( "select count(*) AS NumberOfRecords from factui" )
oQry := oSQL:Query( "select count(*) AS NumberOfRecords from factui" )
oRs := oSQL:Query( "select count(*) AS NumberOfRecords from factui" )
IF oRs:nRecCount > 0
MsgInfo( oRs:NumberOfRecords )
ENDIF
oQry := oSQL:Execute( "select count(*) AS NumberOfRecords from factui" )
msginfo( oQry:NumberOfRecords)
oQry := oSQL:Execute( "select concat(firstname,lastname ) AS Name from mytable where id=nnn" )
msginfo( oQry:Name)
oQry := oSQL:Execute( "select count(*) AS NumberOfRecords from factui" )
msginfo( oQry:data[1,1])
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Otto and 108 guests