我用select和where 读取数据库指定的记录,但出错,也试过用where 不同条件,请问各位我应如何做才能解决?
我用select和where 读取数据库指定的记录,但出错,请问各位我应如何做才能解决?
以下是我的原代码:
Set con = Server.CreateObject("ADODB.Connection")
set rst = Server.CreateObject("ADODB.Recordset")
ks = Server.Mappath("\fpdb\scooter_part.mdb") & ";"
con.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & ks
sql = "SELECT * FROM scooter_part where e_part_name = "Starter Claw (Pawl)""
rst.Open sql,con,1,1
错误报告:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/get_retail_price.asp, line 16
sql = "SELECT * FROM scooter_part where e_part_name = "starter claw (pawl)""
-------------------------------------------------------^