mysql使用Navicat创建分区

笙烛

关注

阅读 109

2022-01-25


mysql使用Navicat创建分区

打开Navicat,创建数据库,并点击创建表,选择选项

mysql使用Navicat创建分区_字段

创建分区

mysql使用Navicat创建分区_database_02

注:在用字段时,需将字段设置为索引,且每个分区必须有取值 

查看分区是否创建成功

 先向表中插入数据,然后执行如下语句:

select 
partition_name part,
partition_expression expr,
partition_description descr,
table_rows
from information_schema.partitions where
table_schema = schema()
and table_name='表名字';

mysql使用Navicat创建分区_数据库_03

 mysql使用Navicat创建分区_创建表_04


精彩评论(0)

0 0 举报