当前位置:网站首页>MySQL add field or create table SQL statement
MySQL add field or create table SQL statement
2022-06-09 05:28:00 【Always happy old pea】
Preface
Recently, we will send a message to the test and operation and maintenance department SQL Script , Used to using tools , Forget the original operation
SQL Script
1. Add fields to existing tables
ALTER TABLE Table name ADD Field name Field type ( Field length - optional ) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL( Can't be empty ) DEFAULT 0( The default value is ) COMMENT ' remarks '( remarks )AFTER After specifying the field ( No default last );
Now there is no such field in the table :
ALTER TABLE cl_member_wallet_withdrawal_log ADD COLUMN state char(1) DEFAULT '0' COMMENT &#边栏推荐
- 1- enter the database
- Li Kou today's question -1037 Effective boomerang
- 优视慕V8投影仪,打开高清新“视”界
- AQS 之 Semaphore 源码分析
- 3-4月份我们干了些什么?
- Finding JS in the two-dimensional array of sword fingers (clear version)
- Analysis of reentrantlock source code of AQS
- Failed to crawl HTML into MySQL insert
- 基础集群部署 - kubernetes-simple
- redis 缓存雪崩、穿透、击穿问题
猜你喜欢
随机推荐
Marathon环境下fastdfs和vsftpd和miniIo文件服务器搭建的方式
AspNetPager combines stored procedure paging to speed up access
[it] Fuxin PDF Keeping Tool Selection
Common interview questions
PS how to add white edges to images
[C language] a quick pass operator
【IT】福昕pdf保持工具选择
Apache devlake code base guide
function
Alibaba cloud AI training camp - machine learning 2:xgboost
Product weekly report issue 28 | CSDN editor upgrade, adding the function of inserting existing videos
Encapsulation of common methods in projects
Soft keyboard appears search
Class related difficulties
【IT】福昕pdf保持工具選擇
Ecmascript6.0 Basics
力扣今日题-1037. 有效的回旋镖
MRNA factory| quantitative detection of LNP encapsulated RNA content by ribogreen
Article title
validate-npm-package-name








