mysql 中的一些重要函数

 show create table user_profile  查看表结构

1.datediff(end_date,start_date)函数,now(), curdate() curtime()

date_add(日期,interval num 时间) date_format(日期,格式)

4.select IFNULL(null,0);  oracle 中nvl 函数

5.select IF(2 > 1, 2,0), oracle 中 decode 函数 当然case when 也可以

6.select case question_id when question_id%3=1 then 'first' when question_id%3=2 then 'second' else 'third' end from question_practice_detail;

oracle 中独有的row_id() ,row_numer()    cur_date   decode()

相关推荐

  1. mysql 一些重要函数

    2024-03-10 22:54:03       47 阅读
  2. springboot一些重要注解

    2024-03-10 22:54:03       43 阅读
  3. opencv几个重要函数

    2024-03-10 22:54:03       56 阅读
  4. MySQL函数

    2024-03-10 22:54:03       35 阅读
  5. mysql函数

    2024-03-10 22:54:03       29 阅读
  6. Mysql函数

    2024-03-10 22:54:03       27 阅读
  7. C++函数重载

    2024-03-10 22:54:03       34 阅读
  8. Python重要内建高阶函数

    2024-03-10 22:54:03       46 阅读
  9. MySQL加密函数

    2024-03-10 22:54:03       58 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-10 22:54:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-10 22:54:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-03-10 22:54:03       82 阅读
  4. Python语言-面向对象

    2024-03-10 22:54:03       91 阅读

热门阅读

  1. MySql分布式事务

    2024-03-10 22:54:03       31 阅读
  2. react在什么时候请求接口

    2024-03-10 22:54:03       42 阅读
  3. leetcode热题100训练计划

    2024-03-10 22:54:03       37 阅读
  4. react,hooks中的useRef使用

    2024-03-10 22:54:03       41 阅读
  5. vue3 blob下载流文件

    2024-03-10 22:54:03       39 阅读
  6. vue 菜鸟教学如何jason字符串转对象

    2024-03-10 22:54:03       38 阅读
  7. 音频视频如何转字幕,音频视频转字幕教程

    2024-03-10 22:54:03       47 阅读
  8. 【深度学习】Pytorch基础

    2024-03-10 22:54:03       36 阅读
  9. 基于python的可视化开发

    2024-03-10 22:54:03       35 阅读