在cmd的命令下 用Mysql中建立一个表

xiaoxiao2021-02-28  58

1, mysql -uroot -pxxxx //登陆数据库2, show databases; //查看数据库,例如要在test库中建表3, use test;//进入test4, create table users( //例如要建立users表,下面是建立字段 create table student(Sno int not null primary key,Sname char(10)not null,Ssex bit not null,Sage tinyint not null,Sdept char(20) not null);
转载请注明原文地址: https://www.6miu.com/read-37138.html

最新回复(0)