- 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:
推薦閱讀
- UI圖標創意設計
- 程序員修煉之道:程序設計入門30講
- 算法零基礎一本通(Python版)
- Building a Home Security System with Raspberry Pi
- Django開發從入門到實踐
- Animate CC二維動畫設計與制作(微課版)
- 21天學通C++(第6版)
- Reactive Programming With Java 9
- Java性能權威指南(第2版)
- Python漫游數學王國:高等數學、線性代數、數理統計及運籌學
- GameMaker Programming By Example
- C++新經典
- C# and .NET Core Test Driven Development
- Unity 5 Game Optimization
- SaaS攻略:入門、實戰與進階