How to import sql file in postgresql using command line?
Syntex: psql -h localhost -U postgres -p PORT DATABASE < FILE_PATH Command: psql -h localhost -U postgres -p 5432 testdb
Read moreSyntex: psql -h localhost -U postgres -p PORT DATABASE < FILE_PATH Command: psql -h localhost -U postgres -p 5432 testdb
Read more1) Create Procedure CREATE OR REPLACE PROCEDURE pgProcedure () as $$ BEGIN SELECT LastName from persons; END; $$ LANGUAGE plpgsql;
Read moreCreate Docker-composer.yml in root version: “3.7” networks: app-network: driver: bridge services: app:
Read morecreate or replace function myFunction(x TIMESTAMP, y TIMESTAMP) returns TIMESTAMP language plpgsql as $$ declare fechatimestamp TIMESTAMP; begin fechatimestamp:=null; fechatimestamp:=
Read more