C/C++怎样连接ACCESS
来源:百度知道 编辑:UC知道 时间:2024/06/22 22:59:10
如题,这样建表,怎样连接(代码).越详细越好,满意的话再加分.
最好有完整的代码,不要一小段的
最好有完整的代码,不要一小段的
这种方法最常用:
1.
set dbconnection=Server.CREATEOBJECT("ADODB.CONNECTION")
DBPath = Server.MapPath("customer.mdb") //customer.mdb是您的数据库名,您可以在前面加上路径
dbconnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
SQL="select * from auth where id='" & user_id &"'"
SET uplist=dbconnection.EXECUTE(SQL)