mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2026-05-04 03:50:44 +02:00
1 line
441 B
Plaintext
1 line
441 B
Plaintext
{"mysql":"SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month\n\t\t\t\tFROM wp_posts\n\t\t\t\tWHERE post_type = 'attachment'\n\t\t\t\tORDER BY post_date DESC","postgresql":"SELECT DISTINCT EXTRACT(YEAR FROM post_date ) AS year, EXTRACT(MONTH FROM post_date ) AS month\n\t\t\t\tFROM wp_posts\n\t\t\t\tWHERE post_type = 'attachment'\n\t\t\t\tORDER BY EXTRACT(YEAR FROM post_date) DESC, EXTRACT(MONTH FROM post_date) DESC"} |