MySQL使用查询结果创建表_MySQL
程序员文章站
2022-06-14 20:46:20
...
bitsCN.com
MYSQL不支持:
Select * Into new_table_name from old_table_name;
替代方法:
1
Create table new_table_name (Select * from old_table_name);
select * into new_table_name from old_table_name;
2
SELECT * INTO OUTFILE 'a.txt' FROM table_name;
LOAD DATA INFILE '/database/mysql/a.txt' INTO TABLE new_table_name;
作者“ylqmf的专栏”
bitsCN.com上一篇: 有几个小问题纠结中
下一篇: 简单的PHP伪缓存并定时抓取某页面内容