amazon redshift sql 语法 和my sql的区别


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.  ` 用不了

posted @ 2017-10-19 18:18  张开开  阅读(2381)  评论(0编辑  收藏  举报