当前位置:网站首页>How MySQL modifies field type and field length
How MySQL modifies field type and field length
2022-06-10 17:15:00 【1024 Q】
mysql Modify field type and field length
1、 Modify field type
2、 Modify field length
Modify the length of a field in the database table
mysql Modify field type and field length 1、 Modify field typeFormat :alter table Table name modify column Field name type ;
example :
take users Tabular registerTime Change the field to datetime type ;
alter table users modify column registerTime datetime;2、 Modify field length Format :alter table Table name modify column Field name type ( length );
example :
take users Tabular username Change the field to varchar type , The length is 30 Bytes ;
alter table users modify column username varchar(30); Modify the length of a field in the database table // Create a temporary table CREATE TABLE TMP_TABLE(CUSNO CHAR(10))// modify TMP_TABLE In the table CUSNO Length of field ALTER TABLE TMP_TABLE MODIFY CUSNO CHAR(20)The above is personal experience , I hope I can give you a reference , I also hope you can support the software development network .
边栏推荐
- Fabric. JS centered element
- Fiddler set breakpoint
- MFC basic knowledge and course design ideas
- Set up proxy for chocolate
- 为 Chocolatey 设置代理
- What should be done to improve the service level of the park and optimize the business environment
- How to make a simple Snake game with pyGame
- AIChE | 集成数学规划方法和深度学习模型的从头药物设计框架
- sql注入报错之注入原理实例解析
- Attributes of script tag
猜你喜欢

Fiddler创建AutoResponder

二十多年了,安全套市场还只有杜蕾斯、冈本、杰士邦

Carry forward the past and forge ahead into the future, multiple residuals | densenet (I)

HTML+PHP+Mysql登录注册页面

善用产业链招商,打造产业集群效应,实现产业协同发展

接口测试学习笔记

Live broadcast preview | a new era of social interaction, exploring new social experiences in the universe

Xinsi technology helps Israel visuality systems promote the "left shift" of security

看先进科技如何改变人类生活

隐形马尔可夫模型及其训练(一)
随机推荐
Do you know the five GoLand shortcuts to improve efficiency?
智慧景区视频监控 5G智慧灯杆网关组网综合杆
Fabric. Keep the original level when JS element is selected
【玩转华为云】鲲鹏DevKit迁移实战
MFC basic knowledge and course design ideas
SOA architecture / test phase interface description language transformation scheme
Fiddler为测试做什么
What is the highest compound interest insurance product? How much does it cost a year?
成立1年便成独角兽,腾讯滴滴做「靠山」,今年新晋的独角兽不简单
Create and install the visual studio offline installation package
Cannot locate a 64-bit Oracle Client library:The specified module could not be found.
NumPy 学习笔记
How to own your own blog website from scratch [Huawei cloud to jianzhiyuan]
AIChE | 集成数学规划方法和深度学习模型的从头药物设计框架
MySQL如何修改字段类型和字段长度
Fabric.js 元素被选中时保持原有层级
VBA判断文件是否存在及问文件备份思路
Fiddler过滤会话
Fabric. JS centered element
Calling subroutines from other modules in VBA - call a subroutine from a different module in VBA