Aug 25, 2003 #1 luistsousa Technical User Joined May 12, 2003 Messages 66 Location PT Hi How can I read a record in a mysql table using a Query1.SQL state? Regards
Sep 3, 2003 1 #2 VeraA MIS Joined Sep 3, 2003 Messages 1 Location SG example: query1.SQL.Clear; query1.SQL.Add('Select employee_code from employee_table'); query1.SQL.open; while not(query1.eof) do begin {this is data which you read from the table} --> query1.fieldbyname('employee_code').asstring; end; Hopefully my example can help you Upvote 0 Downvote
example: query1.SQL.Clear; query1.SQL.Add('Select employee_code from employee_table'); query1.SQL.open; while not(query1.eof) do begin {this is data which you read from the table} --> query1.fieldbyname('employee_code').asstring; end; Hopefully my example can help you
Sep 4, 2003 Thread starter #3 luistsousa Technical User Joined May 12, 2003 Messages 66 Location PT Yes. Help me a lot. Thanks Upvote 0 Downvote