24

I have a SQLite database with this format:

TABLE users
    |
    |---------name - text
    |
    |---------avatar - text
    |
    |---------password - text
    |
    |---------userdir - text
    |
    |---------role - numeric

I want to change the number of role. How could I change it? (I mean, what query?)

I'm using PHP if anyone needs it. Thanks!

pmerino
  • 5,560
  • 10
  • 54
  • 75

1 Answers1

64
UPDATE users SET role=99 WHERE name='Fred'
Graham Borland
  • 58,983
  • 20
  • 134
  • 177