- 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:
推薦閱讀
- Oracle Database In-Memory(架構與實踐)
- INSTANT FreeMarker Starter
- JavaScript前端開發與實例教程(微課視頻版)
- Python忍者秘籍
- Kotlin從基礎到實戰
- SQL Server與JSP動態網站開發
- C語言開發基礎教程(Dev-C++)(第2版)
- 新一代SDN:VMware NSX 網絡原理與實踐
- Internet of Things with ESP8266
- 詳解MATLAB圖形繪制技術
- 深度學習原理與PyTorch實戰(第2版)
- 深入解析Java編譯器:源碼剖析與實例詳解
- WildFly Cookbook
- Python Deep Learning
- 深入分析GCC