- Hands-On GUI Programming with C++ and Qt5
- Lee Zhi Eng
- 127字
- 2021-08-27 19:00:19
UPDATE
The UPDATE statement modifies existing data in the database. You must specify a condition for the UPDATE command as otherwise, it will modify every single piece of data in a table, which is not our intended behavior. Try the following command, which will change the username and password of the first user:
UPDATE user SET username = "test1", password = "1234321" WHERE id = 1;
The command will fail, however, if the user with ID 1 does not exist. The command will also return the status 0 rows affected if the username and password data you provided matches exactly with the one stored in the database (nothing to change). For more information regarding the UPDATE statement, please refer to the following link:
推薦閱讀
- Data Visualization with D3 4.x Cookbook(Second Edition)
- Learning Cython Programming
- Vue.js快速入門與深入實(shí)戰(zhàn)
- oreilly精品圖書:軟件開發(fā)者路線圖叢書(共8冊)
- Scratch真好玩:教小孩學(xué)編程
- Data Analysis with IBM SPSS Statistics
- Mastering C# Concurrency
- 深入理解Java7:核心技術(shù)與最佳實(shí)踐
- Big Data Analytics
- Create React App 2 Quick Start Guide
- SQL Server數(shù)據(jù)庫管理與開發(fā)兵書
- Mastering Linux Security and Hardening
- 零基礎(chǔ)學(xué)C語言程序設(shè)計
- C陷阱與缺陷
- Unity Android Game Development by Example Beginner's Guide