diff --git a/postgres/postgres.md b/postgres/postgres.md index 2c01572..9d16675 100644 --- a/postgres/postgres.md +++ b/postgres/postgres.md @@ -48,6 +48,18 @@ ALTER DATABASE [db] OWNER TO [user]; \dt ``` +### Show all data in table + +``` +SELECT * from [table]; +``` + +### Change field in entry + +``` +UPDATE [table] SET password = 123 WHERE username = hexlocation; +``` + ## Troubleshooting ### Reserved Keywords