当前位置:网站首页>Mysql相关命令
Mysql相关命令
2022-07-16 20:46:00 【sarah0619】
| use 库名;create table 表名(字段名 varchar(20),字段名 char(1)); | 在某个库中建某个表 |
| 例如:use test; | (打开test这个数据库) |
| drop database 库名; | 删除数据库 |
| drop table 表名; | 删除数据表 |
| delete form 表名; | 将表中记录清空 |
| select * from uu; | 列出uu这个表中的记录 |
| insert into test(name,age)values('sarah','28'); | 插入新的数据 |
| update 表名 set 字段名 1='a',字段名2='b'where 字段名3'c'; | 更新表中数据 |
| describe 表名; | 显示数据库中的数据表 |
| select database(); | 显示所有的数据库 |
| select user(); | 显示所有的表 |
| select * from 表名 where sex= "女"; | 从这个表中选出性别为女的 |
| select name,sex from 表名; | 查看这个表中所有人的姓名和性别 |
| select count(*) from 表名; | 对这个表的行计数 |
| select sex,count(*) from 表名 group by sex; | 对性别进行分组然后并计数 |
边栏推荐
- Why is there an error during ucosiiv2.93 migration? The error message is undefined symbol '_ OSTaskReturnHook‘
- 员工管理系统编写过程中摘要
- Topic selection recommendation of the latest information security graduation project
- [development of large e-commerce projects] cache distributed lock redisson concise & integration lock redisson resolve deadlock read / write lock lock lock semaphore-44
- 【无标题】
- Cache results of recursive optimization (JS)
- 基于多数据源零代码同时生成多个数据库CRUD增删改查RESTful API接口——MySql,PostgreSql,Oracle,Microsoft SQL Server多数据源
- Modify server password
- NASA首次拍到宇宙大爆炸后一瞬间的清晰照片
- The distant savior obeys the objective law (VII) -- cultural attribute
猜你喜欢

leetcode--49字母异位词分组

私域运营很火,私域运营是否适合所有企业?

NASA took the first clear picture of the moment after the big bang

The position of the lines drawn by canvas is disordered

Encapsulate and obtain system user information, roles and authority control

Remember once, ants were abused on all sides. The water was too deep. Have you built the ferry across the river?
Professor Liu Xiaole: my indissoluble relationship with bioinformatics

416.分割等和子集·背包问题·动态规划

3D point cloud course (II) -- nearest neighbor problem

leetcode--242. 有效的字母异位词
随机推荐
npm 常用命令 使用命令删除 node_modules 包
The observation returned by the 'reset()' method is not contained with the
[UCOS III source code analysis] - mutually exclusive semaphores (mutually exclusive locks)
Byte 3 finally landed. Please keep this hot noodle Sutra "including free information"
Huada 110 clock calibration
parker派克柱塞泵PV140R1K1T1NMMC
遠程購買商品Solidity合約
Chapter 3 business function development (check the details of market activities)
2022 soft test network administrator preparation guide
20220714 adapt openharmony-v3.1-beta to aio-3568j (compile builderoot)
Contrat de solidity pour l'achat à distance de marchandises
Professor Liu Xiaole: my indissoluble relationship with bioinformatics
Pytorch installation (very detailed)
Nature aging | activates FoxM1 gene, or doubles human life span
员工管理系统编写过程中摘要
创建型模式之享元模式
Quickly and completely delete node_ modules
Marvell88Q5192 switch调试记录(BSTA1000B平台)
Tencent is all around. It's silly to ask
The problem of loss as Nan occurred during the training