testerg

#创建数据库Testedb1

create database Testedb1 ; 

#查看数据库

show databases;  

#使用数据库

use Testedb1; 

#查看正在使用的数据库

select database() ; 

#创建表student,student表的字段、字段类型、字段属性属性:

  1. id int(10) not null unique primary key auto_increment,
  2. stu_id int(10) not null,
  3. name varchar(20),
  4. sex varchar(4),
  5. grade int(10)
create table student(
id int(10) not null unique primary key auto_increment,
stu_id int(10) not null,
name varchar(20),
sex varchar(4),
grade int(10)
);

分类:

技术点:

相关文章:

  • 2021-10-01
  • 2021-12-15
  • 2021-12-12
  • 2021-12-19
  • 2021-12-07
  • 2021-12-14
  • 2021-12-15
  • 2021-11-17
猜你喜欢
  • 2021-11-19
  • 2021-08-27
  • 2021-04-07
  • 2021-12-01
  • 2021-11-22
  • 2021-11-07
相关资源
相似解决方案