ASP Classic SQL Multiple parameters [duplicate]
问题 This question already has answers here : ASP Classic SQL Query error message, right syntax please (2 answers) Closed 6 years ago . What is the ASP Classic SQL query equivalent for this Oracle SQL: SELECT column1 FROM table WHERE column2 = '&num' AND column2 LIKE '&nam%'; 回答1: read about classic asp, adodb and so on, really! here's a untested example: sql = "SELECT column1 FROM table WHERE column2 = ? AND column3 LIKE ? + '%'" set cmd = server.createobject("ADODB.Command") cmd.activeconnection