Home delphi mysql query result
Reply: 0

delphi mysql query result

user562 Published in May 21, 2018, 3:04 am

for read data from database server im using mysql query like this:

FDQuery1.SQL.Text := 'select * from `table` WHERE dcid=3;';
memo1.Lines.Add( FDQuery1.FieldByName('value').AsString );

but when i have to use a loop for read data from mysql

i need a array to read and store data on it

i know in php its like this

$arr = array();
while($obj = $q->fetch_object() ){
    $arr[] = $obj;

but how can i do this syntax in Delphi ?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.314121 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO