当前位置:网站首页>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
边栏推荐
- Object. The disorder of key value array after keys
- Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)
- Deploying MySQL in cloud native kubesphere
- Kernel error: no rule to make target 'Debian / canonical certs pem‘, needed by ‘certs/x509_ certificate_ list‘
- 5 free audio material websites, recommended collection
- Free and open source agricultural Internet of things cloud platform (version: 3.0.1)
- office2021安装包下载与激活教程
- Record the problems encountered in using v-print
- Design of STM32 multi-channel temperature measurement wireless transmission alarm system (industrial timing temperature measurement / engine room temperature timing detection, etc.)
- Start mqbroker CMD failure resolution
猜你喜欢
Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik
About the 'enum' enumeration type and structure.
Recovering data with MySQL binlog
Important knowledge of network layer (interview, reexamination, term end)
Servlet监听器&过滤器介绍
31. Next arrangement
Trier les principales utilisations de l'Agent IP réseau
[untitled] make a 0-99 counter, P1 7 connected to key, P2 connected to nixie tube section, common anode nixie tube, P3 0,P3. 1. Connect the nixie tube bit code. Each time you press the key, the nixie
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
Use compressorjs to compress pictures, optimize functions, and compress pictures in all formats
随机推荐
Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy
「玩转Lighthouse」轻量应用服务器自建DNS解析服务器
SSM framework series - annotation development day2-2
[Blue Bridge Cup] April 17 provincial competition brushing training (the first three questions)
Deploying MySQL in cloud native kubesphere
Kernel error: no rule to make target 'Debian / canonical certs pem‘, needed by ‘certs/x509_ certificate_ list‘
The El table horizontal scroll bar is fixed at the bottom of the visual window
Utils of various date conversion
Wu Enda's programming assignment - logistic regression with a neural network mindset
leetcode-791. Custom string sorting
Introduction to servlet listener & filter
21 天学习MongoDB笔记
4.22学习记录(你一天只做了水题是吗)
The project file '' has been renamed or is no longer in the solution, and the source control provider associated with the solution could not be found - two engineering problems
three.js文字模糊问题
mysql支持ip访问
98. Error s.e.errormvcautoconfiguration $staticview reported by freemaker framework: cannot render error page for request
4. DRF permission & access frequency & filtering & sorting
Important knowledge of transport layer (interview, retest, final)
leetcode-791. 自定义字符串排序