SQL, how to update data
How to update data stored in a SQL database table
The data stored in a table can be updated using the UPDATE
command:
UPDATE people SET age=2 WHERE name='Roger'
It’s important to add the WHERE
clause, otherwise this instruction:
UPDATE people SET age=2
would update all rows in the table.
→ Read my SQL Tutorial on
The Valley of Code
Here is how can I help you:
- COURSES where I teach everything I know
- THE VALLEY OF CODE your web development manual
- BOOTCAMP 2024 cohort in progress, next edition in 2025
- BOOKS 16 coding ebooks you can download for free on JS Python C PHP and lots more
- SOLO LAB everything I know about running a lifestyle business as a solopreneur
- Interesting links collection
- Follow me on X