select * from information_schema.partitions where table_schema=database() and table_name='table_name';