Mysql sql基本操作

一、创建数据库,编码格式为utf-8

  create database s12day9 charset utf8;

二、创建表

  use s12day9;

  create table students(

              id int not null auto_increment primary key,

              name char(8) not null,

              sex char(4) not null,

              age tinyint unsigned not null,

              tel char(13) null default "_"

             );

猜你喜欢

转载自www.cnblogs.com/Presley-lpc/p/10087143.html