1、使用拼接符号“||”

v_sql := 'SELECT * FROM UserInfo WHERE ISDELETED = 0 AND ACCOUNT =''' || vAccount || ''' AND PASSWORD = ''' || vPassword || '''';

2、使用ASCII码拼接

v_sql := 'SELECT * FROM UserInfo WHERE ISDELETED = 0 AND ACCOUNT =' ||chr(39)||vAccount||chr(39)||' AND PASSWORD = '||chr(39)||vPassword||chr(39);

posted on 2018-01-19 18:11  vofill-work  阅读(15093)  评论(0编辑  收藏  举报