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);