mySQL study notes-DML-DML I don't know

1: Demand, we need to delete all the data in the table

    Method 1: delete from table (table name); however, we do not recommend this, because the number of data in the table will be deleted as many times as necessary, which will consume time and performance.

    Method two (recommended): TRUNCATE TABLE table name ---------- delete the table and create an identical empty table

Guess you like

Origin www.cnblogs.com/yitianyitian/p/12730799.html