酷代码 AI
菜单
全部AI  /  热门  /  AI写代码神器
服务商

create table `py_plan_opportunity_point` ( `id` bigint not null auto_increment comment '主键id', `location_code` varchar(32) character set utf8mb4 collate utf8mb4_0900_ai_ci not null comment '规划点/机会点编码', `location_name` varchar(20) character set utf8mb4 collate utf8mb4_0900_ai_ci default null comment '规划点名称', `point_type` char(2) character set utf8mb4 collate utf8mb4_0900_ai_ci default null comment '点类型(1:规划点/2:机会点)', primary key (`id`), unique key `py_plan_opportunity_point_uniq` (`location_code

`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='规划点/机会点表'; This is a SQL statement in MySQL, mainly creating a table named `py_plan_opportunity_point`. Here's the breakdown: - `id`: A unique identifier for each record, auto-incremented. - `location_code`: A required field for storing the code of the planning point or opportunity point. - `location_name`: An optional field for the name of the planning point. - `point_type`: An optional field indicating the type of point (1: Planning Point / 2: Opportunity Point). - There is a unique index `py_plan_opportunity_point_uniq` on `location_code`, which means that the value of `location_code` must be unique. Please make sure to adjust the database engine and character set according to your actual needs. [2024-09-04 16:08:40 | AI写代码神器 | 188点数解答]

相关提问