How to store MySQL query results in another Table?

前端 未结 4 1691
[愿得一人]
[愿得一人] 2020-12-23 02:45

How to store results from following query into another table. Considering there is an appropriate table already created.

SELECT labels.label,shortabstracts.         


        
4条回答
  •  北海茫月
    2020-12-23 02:53

    If the table doesn't exist (and you e.g. don't want to create it because it may have lots of column names) you can create it on the fly...

    Query:

    CREATE TABLE another_table SELECT /* your query goes here */
    

提交回复
热议问题