Trying to connect to postgresql server using command prompt.
Command used:
psql "sslmode=require host=localhost dbname=test"
Error thrown:
psql: server does not support SSL, but SSL was required
Please help me out on this. Thanks.
This link suggests that you might try
psql "sslmode=disable host=localhost dbname=test"
or (probably better)
psql "sslmode=allow host=localhost dbname=test"
That way you should be able to connect to your server.
I am trying to INSERT INTO a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the SQL engine of the day (…
Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?
SELECT id, amount FROM report I need amount to be amount if report.type='P' and -amount if report.type='N'. How do I add this to the above query?