I’m looking for command, which are helpful for seeing what we have in our database tables. Any hints?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
a hint: if it’s a SQL database you execute
SELECT * FROM tablenameif you want to see what’s in a table. But the know how you execute that command from a commandline prompt we need to know which database you are using.UPDATE:
I don’t really know postgresql (and don’t have it installed). But I THINK you would use something like:
psql -u -c "SELECT * FROM tablename" dbname