mysql建表语句
CREATE TABLE `who_csjcm_transfer_jollycall_data` (
? `rec_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '唯一自增主鍵',
? `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用戶id',
? `user_level` tinyint(2) NOT NULL DEFAULT '0' COMMENT '用戶級別',
? `task_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '類型',
? `phone` varchar(64) NOT NULL DEFAULT '' COMMENT '撥打號碼',
? `language` int(11) NOT NULL DEFAULT '0' COMMENT '語言',
? `site` int(11) NOT NULL DEFAULT '0' COMMENT '站點',
? `country` int(11) NOT NULL DEFAULT '0' COMMENT '國家',
? `order_ids` varchar(255) NOT NULL DEFAULT '' COMMENT '訂單id串,逗號分隔',
? `order_nos` varchar(255) NOT NULL DEFAULT '' COMMENT '訂單號串,逗號分隔',
? `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加時間',
? PRIMARY KEY (`rec_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='外呼數據傳輸記錄表';
#普通索引
ALTER TABLE `zhiliaofa`
ADD INDEX `idx_messageTempId` (`messageTempId`) USING BTREE;
#唯一索引
ALTER TABLE `zhiliaofa`
ADD UNIQUE INDEX `uniq_idx_messageTempId` (`messageTempId`) USING BTREE;
#聯合索引
ALTER TABLE `zhiliaofa`
ADD INDEX `idx_qunZuId_bingRenId` (`qunZuId`, `bingRenId`) USING BTREE;
總結
- 上一篇: 动态表格数据序号从1开始_EXCEL对面
- 下一篇: PPA格式Linux安装,Ubuntu1