mysql对大小写不敏感,不区分:

1.修改表字段:

1.修改表名
alter table 表名 rename 新表名字

2.增加字段
alter table 表名  add 字段名 字段类型(宽度) 约束条件 ;
alter table 表名  add 字段名 字段类型(宽度) 约束条件 first  ;
alter table 表名  add 字段名 字段类型(宽度) 约束条件 after 字段名 ;

3.删除字段
alter table 表名 drop  字段名;

4.修改字段
alter table  表名 modify 字段名  字段类型(字段宽度)约束关系; 
alter table 表名 change  旧字段名  新字段名 字段类型(宽度)约束关系 ; 

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-03-08
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2022-02-14
  • 2021-12-01
  • 2021-08-19
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案