Insert records to Heroku Postres database in Java Web Application hosting



1. Login to Heroku Account
Open Command Line or Git Bash:


2. To establish a psql session with your remote database use heroku pg:psql
 In this case my heroku app name is camarket. WARNING because my local postgresql and heroku postgresql have different version:


3. Select data from the specific table which you want to see


4. Let's insert record to the specific table which you want to


5.Select data from the table again, to make sure whether it is inserted or not


Web App hosted by heroku : https://camarket.herokuapp.com/
Git hub source: https://github.com/Yuth-Set/camarket 

Previous Post Next Post