- 1

Create a lot of tables?

I will like to create lots tables in a database. The tables will have same structure and be named as 2001-01-01 2001-01-02 ...... 2016-12-31 May you suggest some code to doing that?

2nd Jan 2017, 5:39 AM
Heck Robin
Heck Robin - avatar
4 ответов
+ 2
If you still need it not in the way Yc Gu said then build up the code at excel or notepad or something. You'll have to copy and paste and then you run it at the developer tool.
3rd Jan 2017, 8:02 AM
Olavo André Parno
Olavo André Parno - avatar
+ 1
Suggest put them in one table, just add a column which shows the dates
2nd Jan 2017, 4:41 PM
Yc Gu
Yc Gu - avatar
0
My data source records stock history trading data listed by days. There are 500000+ rows in each day. Totally there are about 20GB to deal with. I wish at front end users can load certain data in a very short time(0.2s I wish). I am not familiar with efficiency of MySQL. So I just think in common sense that if i can separate them to many tables, it won't have to deal with 20GB in each query. Is my consider right or not? Maybe there are some suggestions to deal with large data?
2nd Jan 2017, 7:18 PM
Heck Robin
Heck Robin - avatar
0
@Heck Robin, you should consider migrating to another database provider, such as PostgreSQL, SQL server ir Oracle.
3rd Jan 2017, 4:26 PM
Olavo André Parno
Olavo André Parno - avatar