https://www.postgresql.org/docs/current/app-psql.html1.在 OS Shell 下呼叫 psql 執行 fi...
建議可以安裝https://www.portainer.io/ Portainer 可以少記很多指令管理上更方便.
with t0(id, dtime, no) as ( select row_number() over(order by dtime, no) ,...
不要拿SQL語法當程式用。當然,要處理並不是不行。GROUP_CONCAT、UNION、這幾個關鍵字給你參考。
create table ithelp210604 ( id int not null auto_increment primary key , user_...