This is SQL Query in ASP Classic:
mQry = "SELECT DISTINCT name FROM best WHERE invoice_num = " & request.querystring("invoice_num") & " AND name LIKE '%" & request.querystring("org_name") & "%'"
I am not sure if this is correct or what. Based on this query, I need to display or output "name
" based on the two input parameters which is the invoice_num
and the org_name
. I always got this error message:
Microsoft OLE DB Provider for Oracle error '80040e07' ORA-01722: invalid number.
What would be the right ASP Classic SQL query syntax for this..?