1.一直都记不太清楚,需要新建一个数据库和表的脚本是怎样的,恰巧今天翻到了,特地记录下来,希望以后用的时候记住吧!

create database testdb00;
use testdb00;
create table userinfo(
 id                                        int not null auto_increment,
 name                                  varchar(20) not null,
age                                      int not null,
sex                                      tinyint(1) not null,
primary key (id)          
)

2.建好的效果:

建库和表的脚本.sql

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-07-03
  • 2021-06-01
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2021-11-08
  • 2021-12-05
  • 2021-11-21
  • 2021-09-11
  • 2022-12-23
相关资源
相似解决方案