My impression is that the MySQL command DROP TABLE Userwill simply delete the data, columns, and associated restrictions. However, the table wrapper still exists. Is it correct?
DROP TABLE User
Use DROP TABLEwill delete the entire table and all records contained within it. If you want to keep the table structure but delete all the data, consider using it TRUNCATE TABLE. Truncating a table is done by deleting the entire table and then recreating it. This is faster than execution DELETE FROM yourTable, which deletes records one by one.
DROP TABLE
TRUNCATE TABLE
DELETE FROM yourTable
Drop Table , ( " " ); TRUNCATE TABLE , reset auto-increment , TRUNCATE, , .
Drop Table
TRUNCATE
mysql drop table :
! .
, ( ) .
?
MqSQL:
DROP TABLE . DROP .
Be careful with this statement! It deletes the table definition and all table data. For a partitioned table, it permanently deletes the table definition, all its partitions, and all data stored in these partitions. It also removes the partition definitions associated with the dropped table.
Source: https://habr.com/ru/post/1690045/More articles:Scaling the color, shape and line type of several geometers ggplot2 - rSlowing down pi when using a timer - chapelЧисленно устойчивая оценка логарифма интеграла функции с чрезвычайно малыми значениями - python(Java) Why is a HashSet allowed to use synchronously if it is not synchronized? - javaGit Checkout from Repote Repo inside VPN - gitЧто подразумевается под "эффективно неограниченным потоком", - javaMy neural network causes a stack overflow - c ++Type T must be a reference type in order to use it as a parameter when using the interface - genericsHow to transfer data frame to calculate flag, does value exist or not? - apache-sparkMySql получает строку, если id находится в последовательности - phpAll Articles