标签:属性 app innodb varchar inno nod auto sdn cnn
感谢原文博主https://blog.csdn.net/Hyo555/article/details/81943340
还有些经常用到的mysql语句
-- 新增表结构 DROP TABLE IF EXISTS `servicnn`; CREATE TABLE `servin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `operation_unit` varchar(100) DEFAULT NULL COMMENT ‘运‘, `create_time` datetime DEFAULT NULL COMMENT ‘创间‘, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT=‘数‘; --新增表字段 ALTER TABLE risly ADD `lintype` varchar(255) DEFAULT NULL COMMENT ‘类型‘; ALTER TABLE pply ADD `lipe` varchar(255) DEFAULT NULL COMMENT ‘类型‘; --删除表字段 ALTER TABLE risl_apply drop `lin_type`; ALTER TABLE ripply drop `linype`; --插入数据 INSERT INTO dblic(ste, ey, pde, me, cments, dea) VALUES ("ORKET", "5", "5", "核", "数阶段", 2); --删除数据 DELETE FROM dublic WHERE ste = "KET" AND pky = "5";
标签:属性 app innodb varchar inno nod auto sdn cnn
原文地址:https://www.cnblogs.com/DIVEY/p/10232308.html