Printing to screen in .sql file postgres

前端 未结 3 982
一生所求
一生所求 2020-12-18 18:41

This sounds like it should be a very easy thing to do, however, I cannot find ANYWHERE how to do it.

I have a .sql file I am building for an upgrade to my application

3条回答
  •  不知归路
    2020-12-18 19:03

    There's probably a better way to do it. But if you need to use vanilla SQL, try this:

    SELECT NULL AS "Starting to insert into table X";
    -- big pile of inserts go here...
    SELECT NULL AS "Finished inserting into table X";
    

提交回复
热议问题