Query from a variable table in postgres
问题 In my postgres DB, I Have some tables which their names vary based on the current date. To be more specific their names are like these: STATSDATA15_8_2019 STATSDATA14_8_2019 STATSDATA13_8_2019 ... I need an automated query that considering the current date, grabs data from the related table. For example: If the date is August 15th, I need: select * from STATSDATA15_8_2019 And if it is August 14th, I need: select * from STATSDATA14_8_2019 In fact i need an automated, dynamic query with