Код: Выделить всё
mysql> select * from archives;
+----+------------+------------+--------------------------------------------------+------------+------------+
| id | archive_id | table_type | table_name | start_date | end_date |
+----+------------+------------+--------------------------------------------------+------------+------------+
| 1 | 1 | 1 | UTM5H.discount_transactions_all_201006 | 1253192109 | 1277927999 |
| 2 | 1 | 2 | UTM5H.discount_transactions_iptraffic_all_201006 | 1253540120 | 1277927999 |
| 3 | 2 | 1 | UTM5H.discount_transactions_all_201101 | 1277939613 | 1296507599 |
| 4 | 2 | 2 | UTM5H.discount_transactions_iptraffic_all_201101 | 1277939613 | 1296507599 |
+----+------------+------------+--------------------------------------------------+------------+------------+
4 rows in set (0.00 sec)