Supposons que j'ai une commande comme ceci:Créer une nouvelle table à partir d'une commande de sélection
select name, age, haircolor from people where shoesize > 10;
Est-il possible que je peux créer une nouvelle table en fonction de ce que commande retourne? Je veux diriger la sortie de cette commande vers une nouvelle table.
Signification:
mysql> show tables;
+-----------------+
| Tables_in_db1 |
+-----------------+
| people |
+-----------------+
1 rows in set (0.00 sec)
mysql> CREATE TABLE FROM "select name, age, haircolor from people where shoesize > 10;";
..?
mysql> show tables;
+-----------------+
| Tables_in_db1 |
+-----------------+
| people |
| NEW TABLE |
+-----------------+
1 rows in set (0.00 sec)