I would like to know how to automatically write the name of the current day in the table name when i execute a request like :
from qgpltemp.monday (if i run on monday)
from qgpltemp.tuesday (if i run on tuesday)
etc...
(the table is already created with the good name before executing the request)
I have Tried :
select DAYNAME(CURRENT_DATE)as day,cast (row1 as integer) from qgpltemp.:day
and some other things , but i often get the error :
Error: [SQL0104] Elément syntaxique : n'est pas correct. Eléments possibles : <IDENTIFIER>.
SQLState: 42601
ErrorCode: -104
The command DAYNAME(CURRENT_DATE)as day
works fine, i only get the name of the day if i manually write .monday etc...