You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/05/22 12:49:38 UTC

[GitHub] [calcite] XuQianJin-Stars opened a new pull request #1163: [CALCITE-2995] Implement the DAYNAME,MONTHNAME function

XuQianJin-Stars opened a new pull request #1163: [CALCITE-2995] Implement the DAYNAME,MONTHNAME function
URL: https://github.com/apache/calcite/pull/1163
 
 
   `MONTHNAME(date)`
    Returns the full name of the month for date. The language used for the name is controlled by the system time config.
   
   SQL:
   
   ```
   SELECT MONTHNAME('2018-01-01') monthname;
   ```
   
   Result:
   
   | monthname |
   | --------- |
   | January   |
   
   `DAYNAME(date)`
    Returns the name of the weekday for date. The language used for the name is controlled by the system time config.
   
   SQL:
   
   ```
   SELECT DAYNAME('2018-01-01') dayname;
   ```
   
   Result:
   
   | dayname |
   | ------- |
   | Monday  |
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services