将Access数据库导入到SQLite最简单最实用的方法 -转
2016-01-16 11:49
369 查看
(用SQLite Expert Professional 工具)
首先要下载SQLite Expert Professional 工具,新建一个数据库,然后就可以按照下面的步骤将access数据库转换成sqlite数据库了。
通过SQLite Expert创建数据库,然后import --〉Data Transfer Wizard--〉import data into...--〉ADO Data Source
输入
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\XKTV_2012_0515.mdb;Persist Security Info=False
(即:你的数据库存放的路径)
用户名和密码不用输 直接确定就好了
之后,一路next就好,刚开始在网上查了很多方法,但是都太繁琐,而且转换之后中文的编码格式自动转变,不方便,这个方法应该是目前最好的了,呵呵...
http://download.csdn.net/download/zhq56030207/3318317
select * from tmp
select t_hanzi_pinlv.frq, t_hanzi_pinlv.hanzi from t_hanzi_pinlv , t_bihua2hanzi where t_bihua2hanzi.hanzi = t_hanzi_pinlv.hanzi;
select a.frq, b.hanzi into tmp111 from t_hanzi_pinlv as b , t_bihua2hanzi as a where a.hanzi = b.hanzi;
insert into tmp select t_bihua2hanzi.hanzi, t_bihua2hanzi.bihua, t_hanzi_pinlv.pinlv from t_hanzi_pinlv , t_bihua2hanzi where t_bihua2hanzi.hanzi = t_hanzi_pinlv.hanzi;
delete from tmp;
select * from t_bihua2hanzi;
select * from t_bihua2hanzi , tmp where t_bihua2hanzi.hanzi = tmp.hanzi;
update t_bihua2hanzi set frq = tmp.frq where t_bihua2hanzi.hanzi in (select ) tmp.hanzi;
update t_bihua2hanzi set frq =1 where hanzi = '耱'
select * from tmp where bihua like '12%' order by frq DESC ;
select * from t_hanzi_pinlv where hanzi = '可';
首先要下载SQLite Expert Professional 工具,新建一个数据库,然后就可以按照下面的步骤将access数据库转换成sqlite数据库了。
通过SQLite Expert创建数据库,然后import --〉Data Transfer Wizard--〉import data into...--〉ADO Data Source
输入
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\XKTV_2012_0515.mdb;Persist Security Info=False
(即:你的数据库存放的路径)
用户名和密码不用输 直接确定就好了
之后,一路next就好,刚开始在网上查了很多方法,但是都太繁琐,而且转换之后中文的编码格式自动转变,不方便,这个方法应该是目前最好的了,呵呵...
http://download.csdn.net/download/zhq56030207/3318317
select * from tmp
select t_hanzi_pinlv.frq, t_hanzi_pinlv.hanzi from t_hanzi_pinlv , t_bihua2hanzi where t_bihua2hanzi.hanzi = t_hanzi_pinlv.hanzi;
select a.frq, b.hanzi into tmp111 from t_hanzi_pinlv as b , t_bihua2hanzi as a where a.hanzi = b.hanzi;
insert into tmp select t_bihua2hanzi.hanzi, t_bihua2hanzi.bihua, t_hanzi_pinlv.pinlv from t_hanzi_pinlv , t_bihua2hanzi where t_bihua2hanzi.hanzi = t_hanzi_pinlv.hanzi;
delete from tmp;
select * from t_bihua2hanzi;
select * from t_bihua2hanzi , tmp where t_bihua2hanzi.hanzi = tmp.hanzi;
update t_bihua2hanzi set frq = tmp.frq where t_bihua2hanzi.hanzi in (select ) tmp.hanzi;
update t_bihua2hanzi set frq =1 where hanzi = '耱'
select * from tmp where bihua like '12%' order by frq DESC ;
select * from t_hanzi_pinlv where hanzi = '可';
相关文章推荐
- mongodb查询子集
- mysql中如何查询最近24小时、top n查询
- Redis3.0.6安装与部署
- mysql传统主从、双主复制+keepalived配置步骤
- Sql case when 小例
- oracle中lead和lag函数 (转载)
- MySQL修改密码和加密
- oracle中根据当前记录查询前一条和后一条记录
- 安装mysql步骤
- xml读取 数据库连接 生成xml 步骤详解及其代码和所需的包
- 自动生成数据库字典(sql2008) 转自 飘渺の云海
- 数据库设计中的三大范式
- 查看一个表被其他表外键约束的sql语句
- 深入理解SQL的四种连接-左外连接、右外连接、内连接、全连接
- oracle rac集群的东西之QQ聊天
- mysql 创建字符串函数
- iOS数据库SQL
- C#中缓存数据库Memcached的基本使用方法
- ORACLE TABLE COMPRESS 测试
- 在SQL 中 ntext和text类型的的区别