当前位置:网站首页>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
边栏推荐
- TIPC messaging3
- [AGC] build service 3 - authentication service example
- Supermarket (heap overload
- Leetcode 182 Find duplicate email (2022.07.01)
- The first white paper on agile practice in Chinese enterprises was released | complete download is attached
- 2022年4月17日五心红娘团队收获双份喜报
- 从ros1到ros2配置的一些东西
- enumrate的start属性的坑
- Verilog and VHDL signed and unsigned number correlation operations
- V2x SIM dataset (Shanghai Jiaotong University & New York University)
猜你喜欢

How to implement tabbar title bar with list component

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

ren域名有价值吗?值不值得投资?ren域名的应用范围有哪些?

CentOS8之mysql基本用法

MTK full dump抓取
![[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?](/img/66/674a06d8e45a31ae879b81554ef373.png)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?

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

TIPC messaging3

【云原生】2.5 Kubernetes 核心实战(下)

在连接mysql数据库的时候一直报错
随机推荐
解决uniapp列表快速滑动页面数据空白问题
Importerror: impossible d'importer le nom « graph» de « graphviz»
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
Installation of ROS gazebo related packages
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
[AGC] build service 3 - authentication service example
Xiao Sha's pain (double pointer
C# 文件与文件夹操作
Order by注入
Astparser parsing class files with enum enumeration methods
Verilog and VHDL signed and unsigned number correlation operations
Redis超出最大内存错误OOM command not allowed when used memory &gt; 'maxmemory'
在连接mysql数据库的时候一直报错
ros gazebo相关包的安装
Resources reads 2D texture and converts it to PNG format
What are the software product management systems? Inventory of 12 best product management tools
ASTParser 解析含有emum 枚举方法的类文件的踩坑记
ROS lacks catkin_ pkg
MTK full dump抓取
STM32 single chip microcomputer programming learning