SQL
-
在使用order by的時候,如果有多個條件均爲倒序,則需要爲每個條件指定倒序,下面是一個錯誤的示例:
order by A,B,C DESC
實際上等同於
order by A ASC,B ASC,C DESC
因爲postgre默認排序就是ASC,所以不填的都是ASC正序
https://www.postgresql.org/docs/9.6/static/typeconv-union-case.html
在使用order by的時候,如果有多個條件均爲倒序,則需要爲每個條件指定倒序,下面是一個錯誤的示例:
order by A,B,C DESC
實際上等同於
order by A ASC,B ASC,C DESC
因爲postgre默認排序就是ASC,所以不填的都是ASC正序
https://www.postgresql.org/docs/9.6/static/typeconv-union-case.html
在mybatis中 使用?號被當成佔位符 解決方案 1.使用正則表達式 2.postgresql 中 jsonb取值 時 將 mapper.xml 中的 ?替換成 ?? 即可解決
陌生單詞 1.authorization 授權 authorization 批准;授權;批准書;授權書 用在模式創建中。 常見單詞 check 檢查 check可以用在約束條件