MySQL select into
来源:互联网 发布:linux 脚本中修改密码 编辑:程序博客网 时间:2024/06/05 07:07
一、MySQL不支持Select Into语句直接备份表结构和数据,一些种方法可以代替, 也有其它方法可以处理,总结如下:
方法1:
MYSQL不支持:
Select * Into new_table_name from old_table_name;
替代方法:
方法1:
MYSQL不支持:
Select * Into new_table_name from old_table_name;
替代方法:
Create table new_table_name (Select * from old_table_name);
二、MySQL Select into outfile用于导出指定的查询数据到文件如下:
1.导出表中所有数据到C盘根目录outfile.txt中如下:
Select * into outfile 'c://outfile.txt' from test;
2.导出表中指定查询条件2005-06-08号的数据到C盘根目录outfile1.txt中如下:
Select * into outfile 'c://outfile.txt' from test where beginDate='2008-06-08';
- MySQL select into 和 SQL select into
- MySQL select into 和 SQL select into
- MySQL select into和SQL select into
- MySQL select into和SQL select into
- MySQL select into 和 SQL select into
- MySQL select into 和 SQL select into
- MySQL select into 和 SQL select into
- MySQL select into 和 SQL select into
- MySQL select into 和 SQL select into
- MySQL select into 和 SQL select into
- mysql select into和insert into select
- mysql 的select into
- mysql select into
- mysql select into注意事项
- MySQL select into
- mysql select into使用
- MySQL select into 用法
- mysql 并无 select into
- WPF中设置DataGrid的一些样式
- Tomcat下JSP、Servlet和JavaBean环境的配置
- [vb]VB文字编码与Windows记事本的探究
- JAVA学习(二)__JAVA中int、String的类型转换
- 分享几个主题给大家希望大家喜欢!!!
- MySQL select into
- Python删除目录下的文件以及文件夹
- Objective-C、Cocoa、Mac、IOS、Cocos2d开发资料及Demo整合
- C&C++中的qsort和sort库函数
- 少编码多思考:代码越多 问题越多
- sharepoint 2010 如何在sharepoint 2010 中使用MSChart图表控件
- hibernate中的update方法只更新部分字段的方法
- ./configure配置的参数 交叉编译 host,build target的含义
- THINKPAD T420CTO PBYE478