时间:2021-07-01 10:21:17 帮助过:2人阅读
创建表的同时将查询的结果写入到数据表中
CREATE TABLE IF NOT EXISTS tbl_name [(create_definition,...)] select_statement
例:
CREATE TABLE IF NOT EXISTS job(id SMALLINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,name VARCHAR(20) NOT NULL) SELECT job FROM person GROUP BY job;
MYSQL---CREATE...SELECT
标签: