当前位置:网站首页>通过Doc在MySQL数据库中建表
通过Doc在MySQL数据库中建表
2022-08-09 10:21:00 【左明水】
进入doc后:
show databases;
展示所有数据库
exit;
推出doc
create database School;
创建一个数据库
use School;
进入数据库
create table StudentInfo(
name char(10),
age char(3) );
建表
insert StudentInfo(name,age)
VALUES(‘大卫’,‘18’);
插入数据
select *from StudentInfo;
查询
update StudentInfo set age=‘12’ where name=‘HAHA’;
更新数据
insert into studentInfo (name,age)values(‘晶竹’,20);
插入数据
delete from StudentInfo where age=‘20’;
删除数据
边栏推荐
猜你喜欢
随机推荐
TELNET协议相关RFC
百度云大文件网页直接下载
Win7 远程桌面限制IP
conditional control statement
需求侧电力负荷预测(Matlab代码实现)
快速解决MySQL插入中文数据时报错或乱码问题
好久没上博客了,好长时间没有进展了
多线程案例——定时器
判断一段文字的width
xmms播放器加了播放列表的管理功能
Practical skills: a key for image information in the Harbor, quick query image
BERT预训练模型(Bidirectional Encoder Representations from Transformers)-原理详解
StratoVirt 中的虚拟网卡是如何实现的?
公里周日
Received your first five-figure salary
Electron application development best practices
Throwing a question? The execution speed of the Count operation in the Mysql environment is very slow. You need to manually add an index to the primary key---MySql optimization 001
学长告诉我,大厂MySQL都是通过SSH连接的
LeetCode(剑指 Offer)- 25. 合并两个排序的链表
【八大排序①】插入排序(直接插入排序、希尔排序)