| This source code sets the SQL String in Query1. As it fits on one line we just use SQL[0].
The SQL statement finds all the fields from the Article table where the user_id field is equal to a varaible Text value dbtUser.Text.
A better way would be to use Parameters in the Query. Query1.SQL[0] := 'select * from article where user_id = ' + dbtUser.Text + '';
Query1.Active := True;
|