随笔分类 - 数据库
摘要:date YYYY-mm-dd格式 时分秒%Y%m%d time 时分秒%H%m%s datetime %Y%m%d %H%m%s YYYY-mm-dd HH:ss:mm timestamp YYYYmmddHHssmm riqi查询
阅读全文
摘要:CREATE USER 'username'@'host' IDENTIFIED BY 'password';grant 权限 on 数据库.* to 用户名@登录主机 identified by "密码"; grant select on v_$mystat to test1; 给on v_$my
阅读全文
摘要:oracle用cennect by select AA.mon,IFNULL(BB.num,0) 'num'from (select DATE_FORMAT( (DATE_ADD(now(),INTERVAL -11 MONTH)),'%Y-%m') as monunion allselect DA
阅读全文
摘要:https://blog.csdn.net/mchdba/article/details/39163695 第一步,求两个表各自的数据select DATE(a.create_date) as 'nianfen', sum(IF(a.type="0",1,0)) AS "shanghu", SUM(
阅读全文
摘要:insert into user(username,birthday,sex,address) value(#{username},#{birthday},#{sex},#{address}) ...
阅读全文

浙公网安备 33010602011771号