-------------------------------------------------------------------------------- dim objconnection as oledbconnection dim objcommand as oledbcommand objconnection=new oledbconnection(provider=microsoft.jet.oledb.4.0;data source="+server.mappath(strdb)) objcommand=new oledbcommand("这里是sql语句" , objconnection) objconnection.open() objdatareader=objcommand.executenoquery()
下面再举例子说明一下sql语句(access): 添加记录: insert int o 表名 (字段1,字段2) values (字符串1,字符串2) where 条件 删除记录: delete from 表名 where 条件 修改记录: update 表名 set 字段1=××,字段2=×× where 条件