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