Write a MySql command for creating a table "BANK” whose structure is given below:
Attachments:
Answers
Answered by
11
The command to create the table as per the question is as follows:
is a DDL command used to create tables under selected databases. Once you call out this command, you need to specify the column names, along with their data types and sizes, and constraints [if any.]
The Primary Key constraint is used to ensure that all values under this column are unique values and there are no repeated values. It helps eliminate redundancy of data.
The Not Null constraint is used to ensure that there are no empty values in this column.
Similar questions