Get data of Query in TMySQL problem

Get data of Query in TMySQL problem

Postby Marc Vanzegbroeck » Wed Aug 08, 2012 7:09 am

Hi,

I have a table 'btw' with fields 'ID' in first position and 'BTW' in second
When I run a query like
oQry = query('SELECT * FROM btw)


I can read the data of the field 'BTW' with
Code: Select all  Expand view
     oQry:GoTop()
      DO WHILE !oQry:eof()
            ? oQry:FieldGet(2)
          oQry:Skip(1)
      ENDDO


But when I use

oQry = query('SELECT "BTW" FROM btw)


? oQry:FieldGet(1) always return the text 'BTW' instead of the content of that field

How can I read the data of the field 'BTW' if I only want query that field

Thanks,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Get data of Query in TMySQL problem

Postby Marc Vanzegbroeck » Wed Aug 08, 2012 8:13 am

Never mind, I just found the problem...

Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 98 guests