show partitions table_name;
其中含有$%7Bdate_ym}特殊字符
使用
alter table table_name drop partition(ptt_mon='$\{date_ym}');
本文介绍如何在数据库中使用特殊字符进行分区表的操作。包括展示分区表的命令以及如何通过特定日期格式删除指定分区的方法。
show partitions table_name;
其中含有$%7Bdate_ym}特殊字符
使用
alter table table_name drop partition(ptt_mon='$\{date_ym}');
5268
873
2275
1万+
983

被折叠的 条评论
为什么被折叠?