我用 select ..join 语句提取出想要的数据了,导出的是数据文件, 如何把数据导入新表中,或者有其他方式能写入数据库 ?
|
bugsnailSep 1, 2016
1
你需要 insert into table_name select ...join
注意用别名 0 id, xx name 这样把你 select 的字段匹配对应 table 的字段就行了 |
|
phx13yeSep 1, 2016
2
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; |
|
mayokeloSep 1, 2016
5
LOAD DATA INFILE
|