Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Created June 13, 2013 17:49
Show Gist options
  • Select an option

  • Save josephwegner/5775773 to your computer and use it in GitHub Desktop.

Select an option

Save josephwegner/5775773 to your computer and use it in GitHub Desktop.
lessonnote_dev=# UPDATE users SET admin='t' AND superadmin='t' WHERE id=1;
UPDATE 1
lessonnote_dev=# SELECT id, email, admin, superadmin FROM users WHERE id=1;
id | email | admin | superadmin
----+-------------------+-------+------------
1 | alice@example.com | f | f
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment