随笔分类 -  MySQL

MySQl 创建表时timestamp类型字段出错
摘要:CREATE TABLE `sync_test` ( `id` varchar(32) NOT NULL, `int_two` smallint(6) DEFAULT NULL COMMENT '整型2', `int_four` int(11) DEFAULT NULL COMMENT '整型4', 阅读全文

posted @ 2021-07-21 17:47 80boy 阅读(648) 评论(0) 推荐(0)

在聚合函数COUNT和SUM里面调用IF函数
摘要:count(if(表达式, true, null)) sum(if(表达式, 字段名称, 0)) 阅读全文

posted @ 2021-04-29 16:19 80boy 阅读(300) 评论(0) 推荐(0)

导航