Professional Documents
Culture Documents
SQL Example
SQL Example
/* This USE statement is to select the schema “ sports 2022” for the current session */
2 USE sports2022;
/* This CREATE TABLE statement is used to create a table with name “field”. This “field”
table includes two columns: fieldid and description.
The column “fieldid” is the primary key of the table and , its starting value is 1, and will
increment by 1 for each new record automatically*/
5 description VARCHAR(100)
6 );
/* This ALTER TABLE statement is used to rename the field description to name*/
/* This ALTER TABLE statement is used to make the column name as the required field */
PersonID int,
);