Mysql create a single table name for the same schema type multiple tables

心已入冬 提交于 2019-12-08 13:46:45

问题


I was creating 10 tables with same schema for loading application LOG.

I was creating 10 tables with same schema and at the end I do create a alias name which will represent all those 10 tables.

So it take care about current active table selection to insert the records, so once table1 gets filled more records it will choose table2 and next table3....

So while selecting a record, it will check all the 10 tables for the requested record.....

Now my question is, I forgot about how did I created and which statement I have used.

If anyone knows then please let me know about this.


回答1:


You are reinventing partitioning, please use the tools MySQL provides for this, it will save you a lot of time & headaches.



来源:https://stackoverflow.com/questions/15393405/mysql-create-a-single-table-name-for-the-same-schema-type-multiple-tables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!