adoLogin.Close; adologin.SQL.Clear; adologin.SQL.Add('select * from user where username = '+quotedstr('edname.Text')+' and userpass='+QuotedStr('edpass.Text')+''); adologin.Open; 当点击时,报FROM子语句有错误。 为什么???
adoLogin.Close; adologin.SQL.Clear; adologin.SQL.Add('select * from user where username = '+quotedstr(Trim(edname.Text))) adologin.SQL.Add('and userpass='+QuotedStr(Trim(edpass.Text))); adologin.Open;