您的位置首页生活百科

delphi 使用quotedstr建立sql语言错误

delphi 使用quotedstr建立sql语言错误

的有关信息介绍如下:

delphi 使用quotedstr建立sql语言错误

var sql: string; sql := 'select 标准ISBN from 书籍资料 where 标准ISBN<>' + QuotedStr('') + ' and 标准ISBN<>' + QuotedStr(edt_isbn1.Text) + ' and 中图分类=' + QuotedStr(flh) + ' group by 标准ISBN';其实你最好用Format函数而不是拼凑的方式来构建SQL语句。