SQL:='SELECT * from system_table WHERE UserId='+Edit1.Text;
UserId类型为varchar(30)
DBMS为SQL Server2005
Edit1中输入1或001,都能检索到表中UserId为001的项,请问一下是什么地方出错了?