How to clear a table in MySQL? This must be done via a PHP script (not via phpMyAdmin)
2 answers
Hello, if you know how to work through phpmyadmin, then there you can see a sample code after performing the action. I also recommend learning to use search. How to clean tables in a database in SQL
or a little google
Answer: mysql_query("TRUNCATE TABLE название таблицы");
- one@ MrGons18, there you can even see a sample code for PHP - BOPOH
|
TRUNCATE TABLE
tablename
- thank. It worked. - MrGons18
|