当前位置:网站首页>MySQL basic statement
MySQL basic statement
2022-07-02 11:22:00 【Xi Xin o】
// modify SQL Middle table name
alter table < The original table name > rename to < The new name of the table >;
// Add a new field to the table
alter table < Table name > add < Add field name > < Field type >
// Update a field in the table
update < Table name > set < Update field name > = < value >
// Update a column in a row in the table
update < Table name > set < Update field name >=< value > where < Conditions >
// Delete data in table
delete from < Table name > where < Conditions >
// Modify the name of the table
alter table < Table name > rename to < The new name of the table >;
// sql Find custom sort order
select * from < Table name >
order by case
when id = 102 then 1
when id = 99 then 2
when id = 100 then 3
when id = 101 then 4
else id end asc
// The final data obtained is in id (102, 99, 100, 101) The order
边栏推荐
- Array splitting (regular thinking
- How to use ide to automatically sign and debug Hongmeng application
- TIPC messaging3
- Is the stock account given by qiniu business school safe? Can I open an account?
- [quick application] win7 system cannot run and debug projects using Huawei ide
- Regular and common formulas
- tqdm的多行显示与单行显示
- PHP tea sales and shopping online store
- 在网上开股票账户安全吗?我是新手,还请指导
- 金山云——2023届暑期实习
猜你喜欢

三.芯片啟動和時鐘系統

From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang

数字化转型挂帅复产复工,线上线下全融合重建商业逻辑

Internship report skywalking distributed link tracking?

Why does LabVIEW lose precision in floating point numbers

Flink two Open, implement Batch Lookup join (attached source)

How does the whole network display IP ownership?

一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)

map集合赋值到数据库

Jinshanyun - 2023 Summer Internship
随机推荐
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
TIPC Getting Started6
mmrotate旋转目标检测框架使用记录
III Chip startup and clock system
Huawei game failed to initialize init with error code 907135000
C file and folder operation
webauthn——官方开发文档
Pit of the start attribute of enumrate
从ros1到ros2配置的一些东西
Calculate the sum of sequences
Static variables in static function
flink二开,实现了个 batch lookup join(附源码)
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
PKG package manager usage instance in FreeBSD
PLC-Recorder快速监控多个PLC位的技巧
TIPC Cluster5
Regular and common formulas
三.芯片啟動和時鐘系統
From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang
sqlite 修改列类型