C#中怎么修改aceess数据库中的数据

[复制链接]
查看11 | 回复3 | 2010-6-9 10:25:35 | 显示全部楼层 |阅读模式
C#中怎么修改aceess数据库中的数据

回复

使用道具 举报

千问 | 2010-6-9 10:25:35 | 显示全部楼层
选择:select * from table1 where 范围插入:insert into table1(field1,field2) values(value1,value2)删除:delete from table1 where 范围更新:update table1 set field1=value1 where 范围查找:select * from table1 where field1 like ’%value1%’ (所有包含‘value1’这个模式的字符串)---like的语法很精妙,查资料!排序:select * from table1 order by field1,field2 [desc]
回复

使用道具 举报

千问 | 2010-6-9 10:25:35 | 显示全部楼层
用OLEDB类连接access数据库,连接字符串网上能找的到,这边我先给个例子Provider=Microsoft.Jet.OLEDB.4.0;Data Source=数据库文件位置;Jet OLEDB:Database Password=你的密码;基本用法和SqlClient一样
回复

使用道具 举报

千问 | 2010-6-9 10:25:35 | 显示全部楼层
想要点分,上面说的对,多试试了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行