Purposes, I partition name was built according to the date, then I will delete partitions, such as 7 days ago so I have to check out before 7 days of partition Complete code, the outermost layer on the where condition is an error, without the where condition is not an error,
The subquery results:
First of all, without any conditions, ALL_TAB_PARTITIONS list as a result, some partition name not legitimate, not really date type, I, however, by the subquery first filtered out, So, undoubtedly, the outermost layer of the where condition is on the basis of the subquery judgment? Or a full table judgment?
CodePudding user response:
What's the trick, you are the partition name to_date, conversion fails, nature is an error,
CodePudding user response:
If you do you have this fields in data cannot be converted to date
CodePudding user response:
Need to see all the partition_name
CodePudding user response:
Partition the field data has a problem, use to_date error