1。。。ifnull----------nullif
2.。。。分頁:
limit 10 , 3 -----------------select * from (select row_number() over (order by id) rownum) nn where nn.rownum between 1 and 1+10
3.。分頁 :
limit 1 , 10 ------------------ limit 10 offset 1
4.。
不能用的function
group_concat()
concat_ws()
5.。
select a,b,c from table group by a
在redshift中不行,必須b,c 都在group by 后面
6。concat()里只能有兩個參數
7.拼接多個字符串 使用 ||
8. ` 用不了