This is the first workshop of the path where the interface allows writing: everything you type really changes the shop. That is intended, and it is safe: the sandbox is yours and disappears after two hours. So you can break things without consequences, which will never happen again in your career. The account used can only change rows, never drop a table. Most of the workshop happens in a terminal, introduced here with no prerequisite.
Tip
The number of rows announced after an UPDATE or a DELETE only proves the query's reach, never its correctness: "UPDATE 1" says you touched a single row, not that it was the right one. Always check by reading the data itself, inside the transaction, before committing. And before you even write, turn your UPDATE into a SELECT keeping the same WHERE: the rows that come out are exactly the ones you were about to change. Ten seconds of work, and it is the only check that tests a WHERE without breaking anything.
sql
update
delete
transaction
rollback
psql
challenge
SQL: INSERT, UPDATE, DELETE and first steps with psql · MonPremierLab