Postgres Commands

The following code logs in to postgres with the psql command, and then alters the password of a user with the alter command.

    psql paradocs
    alter user paradocs with password 'pgsql_password';

Various commands and sql

    \d <table_name> -- oracle desc equivalent, outputs attributes of table
    \? -- other commands

    UPDATE fat SET field4='200709' WHERE fatid=74528;
    select * from fat where field7='LAST' AND field8='FIRST';
 
general/unix/postgres.txt · Last modified: 05.05.2007 23:23 by 130.85.181.135
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki