Professional Documents
Culture Documents
(3) Query the products you already inserted into the table
2. Practicing (a) the datatype: date, time, datetime, timestamp; (b) the constraint: not null,
primary key, auto increment, default value.
(1) Using both ‘GUI’ and ‘SQL’ sentence methods to create a table name student with 5
columns including:
id: is the ID of student, it is int type, primary key, not null, auto increment.
student_date: is the date of student is born, it is date type, not null;
student_time: is the time of student is born, it is time type, not null;
student_datetime: is the datetime of student is born, it is datetime type, not null;
student_timestamp: is the timestamp of student is born, it is timestamp type, not
null, default value is current timestamp.
(3) Query the students you already inserted into the table.