当前位置:网站首页>mysql 基本语句查询
mysql 基本语句查询
2022-04-23 13:04:00 【孤身不觉晚】
像笔记本一样,忘记就来查查。
CREATE DATABASE teacher;//创建数据库名为teacher
DROP DATABASE student;//删除student数据库
CREATE TABLE teacher_name(
id INT(11),
name VARCHAR(25),
age INT(2)
);//在teacher数据库中创建表teacher_name
DROP TABLE teacher_name;//删除数据表teacher_name
INSERT INTO teacher_name (id,name,age)
VALUES(002,'张老师',23);//向teacher_name表中插入一条数据
DELETE FROM teacher_name WHERE id = 001;//删除teacher_name表中id=001的那条数据
SELECT name = '张老师' from teacher_name;//查询teacher_name 表中name= 张老师的数据
UPDATE teacher_name SET name = '老师' WHERE name = '何老师';//将teacher_name表中name=何老师修改成name = 老师
版权声明
本文为[孤身不觉晚]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_40043424/article/details/104921898
边栏推荐
- Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)
- 「玩转Lighthouse」轻量应用服务器自建DNS解析服务器
- 22. Bracket generation
- Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy
- Connect orcale
- How to convert opencv pictures to bytes
- 7_ The cell type scores obtained by addmodule and gene addition method are compared in space
- [Blue Bridge Cup] April 17 provincial competition brushing training (the first three questions)
- SSM framework series - data source configuration day2-1
- Important knowledge of network layer (interview, reexamination, term end)
猜你喜欢

4. DRF permission & access frequency & filtering & sorting

精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!

Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)

Important knowledge of network layer (interview, reexamination, term end)

If you were a golang interviewer, what questions would you ask?

Install nngraph

SSM framework series - data source configuration day2-1

51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)

Trier les principales utilisations de l'Agent IP réseau

The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
随机推荐
Mysql8 installation
PC starts multiple wechat at one time
AUTOSAR from introduction to mastery 100 lectures (87) - key weapon of advanced EEA - AUTOSAR and DDS
Metalama简介4.使用Fabric操作项目或命名空间
8086 of x86 architecture
Summary of JVM knowledge points - continuously updated
Utils of various date conversion
Async void provoque l'écrasement du programme
4.22 study record (you only did water problems in one day, didn't you)
Golang implements a five insurance and one gold calculator with web interface
CVPR 2022 & ntire 2022 | the first transformer for hyperspectral image reconstruction
Translation of multi modal visual tracking: review and empirical comparison
SQL exercise question 1
精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!
(个人)最近项目开发后存在的系统漏洞整理
Proteus 8.10 installation problem (personal test is stable and does not flash back!)
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
Remote access to raspberry pie at home (Part 1)
R语言中dcast 和 melt的使用 简单易懂
Unable to create servlet under SRC subfile of idea