- 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:
推薦閱讀
- C語言程序設(shè)計(第2 版)
- JavaScript Unlocked
- C語言最佳實踐
- UML+OOPC嵌入式C語言開發(fā)精講
- C語言程序設(shè)計實踐教程
- Java EE 7 Development with NetBeans 8
- HTML5入門經(jīng)典
- Oracle Exadata專家手冊
- Android底層接口與驅(qū)動開發(fā)技術(shù)詳解
- Hands-On Natural Language Processing with Python
- 從Java到Web程序設(shè)計教程
- Kotlin編程實戰(zhàn):創(chuàng)建優(yōu)雅、富于表現(xiàn)力和高性能的JVM與Android應(yīng)用程序
- TMS320LF240x芯片原理、設(shè)計及應(yīng)用
- 深入實踐Kotlin元編程
- SciPy Recipes