redshift——sql常用
1、日期截取where trunc( lesson_start_time) = '2022-05-10',后方日期必须加引号,不然无法识别;2、日期缩写3、字符串连接:concat可以使用,也可以替换为||示例:select tutor_user_id||student_user_id||'hello' from t1;4、CHAR_LENGTH 函数等同于len函数,length函数5、select charindex('fish', 'dogfish'); 返回指定字符串在字
原创
2022-05-12 15:04:28 ·
2847 阅读 ·
0 评论