SQL:='SELECT * from system_table WHERE UserId='+QuotedStr(Edit1.Text);
SQL:='SELECT * from system_table WHERE UserId='+QuotedStr(Edit1.Text); 或 SQL:='SELECT * from system_table WHERE UserId='''+Edit1.Text+'''';对于这类问题自己用showmessage(sql);看看出来的SQL语句就知道啦!
或
SQL:='SELECT * from system_table WHERE UserId='''+Edit1.Text+'''';对于这类问题自己用showmessage(sql);看看出来的SQL语句就知道啦!