Can only query a partition, I now want to check several partitions,
In addition to the writing below, there are no other way to
Select * from table1 partition (id)
Union all
Select * from table1 partition (id2)
.
Select * from table1 partition (idns)
CodePudding user response:
In the where condition, it is ok to use partition table directly, this is what the benefits of the partition table;CodePudding user response:
Select * from table1 where id between x and x; Make it your own partition not lineCodePudding user response:
Efficiency is very slow,CodePudding user response: