mysql 中怎样创建数据库(如何在mysql中新建数据库)?

2023-03-16 17:26:31 6

MySQL创建数据库命令:

1. show databases,显示数据库; 2. create database student(数据库名),创建数据库student; 3. use student,进入student数据库; 4. create table studinfo(表名)(sno int primary key, sage int(2)),创建表studinfo; 5. show table,显示表; 6. drop database student,删除student数据库。

爱网站

Linux、centOS、Ubuntu、Windows操作系统下的ECS云服务器、vps虚拟空间、建站主机到期停止异常等状态监测,宝塔面板Bt、小皮面板PHPStudy、IIS、Apache、Nginx、XAMPP、wamp建站环境意外故障监测,php+MySql、asp、java、html等建站程序运行故障监测,域名状态、SSL证书状态监测,网站301、302、404、500错误代码及网站无法访问通知提醒,全国多节点测试网站速度及网络攻击!

网站服务

扫一扫,关注我们

桂ICP备2022009721号-1