- Building a Web Application with PHP and MariaDB:A Reference Guide
- Sai Srinivas Sriparasa
- 160字
- 2021-07-16 11:36:57
Deleting data
We will use the DELETE
DML statement for deletion of data. The DELETE
statement at a minimum expects the name of the table. Similar to the UPDATE
statement, it is recommended that the DELETE
statement is always used with filter criteria to avoid loss of data.
The DELETE
statement should be used when a record has to be permanently removed from the table.

In the preceding example, we are deleting the records from the students table that match the criterion of student_id
equal to 4
. As there is only one record that matches that criterion, that record has been deleted. The recommendations that were made above about how to use the filter criterion apply for the DELETE
statement too.
推薦閱讀
- Advanced Quantitative Finance with C++
- C語言程序設計(第3版)
- MongoDB for Java Developers
- Java Web開發之道
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Learning Modular Java Programming
- 代替VBA!用Python輕松實現Excel編程
- Qt5 C++ GUI Programming Cookbook
- Mastering Elixir
- 零基礎學C語言(升級版)
- 邊玩邊學Scratch3.0少兒趣味編程
- H5+移動營銷設計寶典
- Python網絡爬蟲實例教程(視頻講解版)
- 金融商業數據分析:基于Python和SAS
- Beginning C# 7 Hands-On:The Core Language