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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM