How to use SQL statement to build a table?
The knowledge involved before, needs to be repeated over time as time goes by.
1.①Select the database we need
②Enter USE + database name
③Click to execute
2. Know that the statement format for building a table is
CREATE TABLE 表名
(
列名1 类型,
列名2 类型,
列名3 类型,
...
)
3. For example, I need to create a recharge table:
①Enter the column name and data type you need
②Select the code
③Click to execute
We can see that the prompt command has been successfully completed, indicating that the table has been built.
It will also prompt the error in the first few lines, correct the error first, and then click execute.
4. Click the refresh icon, you can see the data table just created