delphi中oracle语句的引号问题,搞不懂
gnolk 2016-04-12 09:31:10 最近研究delphi写oracle的程序,遇到这个 不会弄:
user:=edit1.Text;
pass:=edit2.Text;
adoquery1.SQL.Text:='select gh from QDN_LKS_ZY_GH A where A.gh=''||user||'' and A.mm=''||pass||''';
这里是哪里不对?
数据库的语句是:select gh from QDN_LKS_ZY_GH a where a.gh=‘111’ and a.mm='222'