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()