Modification and deletion of MySQL forms

In any database project, the structure of the form is often not static. As business needs change, you may need to make various modifications to the form, or even delete the form sometimes. This article will dive into how to modify and delete forms in MySQL. Data from the game "Three Kingdoms" will be used as an example.

Modify table structure

In a mature database design, the table structure of the database generally does not change. Once the table structure of the database changes, the views, triggers, and stored procedures based on the table will be directly affected, and even lead to modification of the application program.

Suppose there is a form named in the game "Three Kingdoms" sanguo_wujiang, which is used to store information about each general. The original form structure might look like this:

CREATE TABLE sanguo_wujiang(
    id INT PRIMARY</

Guess you like

Origin blog.csdn.net/qq_20288327/article/details/133414479