ygrek / sqlgg

SQL Guided (code) Generator
https://ygrek.org/p/sqlgg/
GNU General Public License v2.0
62 stars 20 forks source link

Add support for various MySQL date functions #113

Open cyberhuman opened 1 year ago

cyberhuman commented 1 year ago

https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html

Some functions don't work because their names match the interval names: DAY(), MONTH(), YEAR(), HOUR(), MINUTE(), SECOND() etc. EXTRACT() doesn't work because it has syntax EXTRACT(<interval_name> FROM <date_expression>) which is not recognized.