Use of wildcards in mysql table name

后端 未结 3 803
情歌与酒
情歌与酒 2020-12-06 16:54

The table names in my mysql database are dynamically generated. Is there some way to select data from tables which have a name matching a pattern? I guess it will look like:

3条回答
  •  孤城傲影
    2020-12-06 17:15

    No, you can't do that with MySQL. Tables in a query can't be dynamically specified - you have to build the list in your application (or do several single-table queries).

提交回复
热议问题