Collections:
Deleting All Rows in a Table in MySQL
How To Delete All Rows in a Table in MySQL?
✍: FYIcenter.com
If you want to delete all rows from a table, you have two options:
The TRUNCATE statement is more efficient the DELETE statement. The tutorial exercise shows you a good example of TRUNCATE statement:
mysql> SELECT COUNT(*) FROM fyi_links; +----------+ | COUNT(*) | +----------+ | 5 | +----------+ 1 row in set (0.08 sec) mysql> TRUNCATE TABLE fyi_links; Query OK, 0 rows affected (0.02 sec) mysql> SELECT COUNT(*) FROM fyi_links; +----------+ | COUNT(*) | +----------+ | 0 | +----------+ 1 row in set (0.00 sec)
⇒ SELECT Query Statements with GROUP BY in MySQL
⇐ Deleting Multiple Rows from a Table in MySQL
2018-01-08, 3152🔥, 0💬
Popular Posts:
How To Convert Characters to Numbers in Oracle? You can convert characters to numbers by using the T...
What Happens to the Current Transaction If a START TRANSACTION Is Executed in MySQL? If you are in a...
How to set the current database in SQL Server? Once you are connected to the SQL Server, you should ...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...
How to detect the collation coercibility associated to a given character string using the COERCIBILI...