首页 技术 正文
技术 2022年11月21日
0 收藏 611 点赞 2,189 浏览 811 个字

参考地址:http://jingyan.baidu.com/article/b7001fe14240ab0e7282dde9.html

[root@youo zw]# mysqldump -u root -p IpManage_v2 > zw_ipmanagev2.sql;

唉哟,不错哦!

MySQL导出指定表中的数据

要求:
1. 不导出创表的语句,因为表已经建好:默认会导出,先drop table然后create table;
2. 导出的insert语句加上ignore,允许重复执行:默认不会加上ignore;
3. insert语句中列出表中的字段,看得更清楚:默认不会; www.2cto.com
4. 分记录生成多条insert语句,修改起来比较容易:默认是一条;最终结果如下:
mysqldump -pxxxxxx qzt qf1_mail_account --no-create-info --insert-ignore --complete-insert --skip-extended-insert >qf1_mail_account.sql其中:
-pxxxxxx 指定密码
qzt 数据库名
qf1_mail_account 表名
>qf1_mail_account.sql 保存到文件
www.2cto.com
mysqldump --help 写道
-t, --no-create-info
Don't write table creation info.
--insert-ignore Insert rows with INSERT IGNORE.
-c, --complete-insert
Use complete insert statements.
-e, --extended-insert
Use multiple-row INSERT syntax that include several
VALUES lists.
(Defaults to on; use --skip-extended-insert to disable.)
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,085
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,560
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,409
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,182
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,819
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,902