"MySQL Getting started is simple" exercise 6.6

Source: Internet
Author: User

(1) First create the database school

(2) Create a teacher table

Select Database

(3) Change the data type of the name field of the teacher table to varchar (30)

(4) Change the position of the birthday field to the front of the sex field

(5) Rename num field to t_id

MySQL can be empty by default, and if you change the field name, the default value is null if you do not write the integrity constraint.

(6) Delete the Address field of the teacher table

(7) Add a field named wages to the teacher table with a data type of float

(8) Renaming the teacher table to Teacherinfo

(9) Change the storage engine of the Teacherinfo table to the MyISAM type

(1) Create Department tables and worker tables under the example database

(2) Delete Department table

"MySQL Getting started is simple" exercise 6.6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.