当前位置:网站首页>Modify table structure
Modify table structure
2022-07-03 01:51:00 【Xu Feng &】
1, Basics
alter table table_name Modify clause
// It is allowed to specify multiple actions , Comma off 2, Modify clause
newly added
add column_name data_type [not null][default default_value]
// Primary key
add primary key
drop primary keychange
change column_name new_column data_type
[not null][default default_name]to update
modify column_name new_data_type[not null][default default_value]
// Directly change without entering the old name, directly enter the new name Delete field
drop column column_nameDelete unique constraint
drop column column_namerename table
rename table table_name to new_table_name边栏推荐
- Telecom Customer Churn Prediction challenge
- 网络安全-病毒
- VIM 9.0 is officially released! The execution speed of the new script can be increased by up to 100 times
- [shutter] animation animation (animatedwidget animation use process | create animation controller | create animation | create animatedwidget animation component | animation operation)
- 7-25 read numbers (loop switch)
- SSL flood attack of DDoS attack
- Main features of transport layer TCP and TCP connection
- STM32 - switch of relay control lamp
- [shutter] animation animation (animatedbuilder animation use process | create animation controller | create animation | create components for animation | associate animation with components | animatio
- Technology sharing | Frida's powerful ability to realize hook functions
猜你喜欢
![[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait](/img/c6/9aee30cb935b203c7c62b12c822085.jpg)
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait

Leetcode skimming questions_ Sum of two numbers II - enter an ordered array

Technology sharing | Frida's powerful ability to realize hook functions
![[QT] encapsulation of custom controls](/img/33/aa2ef625d1e51e945571c116a1f1a9.png)
[QT] encapsulation of custom controls

传输层 TCP主要特点和TCP连接

Sweet talk generator, regular greeting email machine... Open source programmers pay too much for this Valentine's day

【Camera专题】Camera dtsi 完全解析
![[shutter] animation animation (animatedwidget animation use process | create animation controller | create animation | create animatedwidget animation component | animation operation)](/img/5e/1d451a820eadbd05112b41bd0bc7d6.gif)
[shutter] animation animation (animatedwidget animation use process | create animation controller | create animation | create animatedwidget animation component | animation operation)

mysql

自定义组件、使用npm包、全局数据共享、分包
随机推荐
When the epidemic comes, how to manage the team as a leader| Community essay solicitation
Openresty cache
网络安全-木马
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance o
Related concepts of GDB in embedded system
Custom components, using NPM packages, global data sharing, subcontracting
[technology development-23]: application of DSP in future converged networks
CF1617B Madoka and the Elegant Gift、CF1654C Alice and the Cake、 CF1696C Fishingprince Plays With Arr
Network security - talking about security threats
[error record] navigator operation requested with a context that does not include a naviga
Main features of transport layer TCP and TCP connection
The technology boss is ready, and the topic of position C is up to you
Caused by: com. fasterxml. jackson. databind. exc.MismatchedInputException: Cannot construct instance o
网络安全-破解系统密码
The thread reuse problem of PageHelper using ThreadLocal, did you use it correctly?
Network security - scan
[camera topic] how to save OTP data in user-defined nodes
¢ growth path and experience sharing of getting an offer
One of the C language practical projects is greedy snake
Three core issues of concurrent programming - "deep understanding of high concurrent programming"