我用 select ..join 语句提取出想要的数据了,导出的是数据文件, 如何把数据导入新表中,或者有其他方式能写入数据库 ?
1
bugsnail Sep 1, 2016
你需要 insert into table_name select ...join
注意用别名 0 id, xx name 这样把你 select 的字段匹配对应 table 的字段就行了 |
2
phx13ye Sep 1, 2016
You can create one table from another by adding a SELECT statement at the end of the CREATE TABLE statement:
CREATE TABLE new_tbl [AS] SELECT * FROM orig_tbl; |
5
mayokelo Sep 1, 2016
LOAD DATA INFILE
|