流浪のwolf

卷帝

导航

2023年3月9日

数据库的流程函数

摘要: # 流程函数 select if(true,"ok","error"); # ok select ifnull(null,"default"); # default select ifnull("","default"); # "" 阅读全文

posted @ 2023-03-09 07:51 流浪のwolf 阅读(3) 评论(0) 推荐(0) 编辑

数据库的时间函数

摘要: 1. curdate 返回当前日期 2. curtime 返回当前时间 3. now() 返回当前日期和时间 4. year (date) 获取指定date的年份 5. month(date) 获取指定date的日期 6. day(date) 获取指定date的日期 7. date_add(date 阅读全文

posted @ 2023-03-09 07:40 流浪のwolf 阅读(33) 评论(0) 推荐(0) 编辑