select table_name from information_schema.tables where table_schema='lcxtest' and table_type='base table'

统一修改数据库表名字段大小写

alter table user_role rename USER_ROLE;

统一修改数据库表名字段大小写

alter table test rename test1; --修改表名

alter table test add  column name varchar(10); --添加表列

alter table test drop  column name; --删除表列

alter table test modify address char(10) --修改表列类型
||alter table test change address address  char(40)


alter table test change  column address address1 varchar(30)--修改表列名

 

SELECT
    COLUMN_NAME,
    COLUMN_TYPE
FROM
    information_schema.COLUMNS
WHERE
    table_schema = 'lcxtest'
AND table_name = 'USER_ROLE'

 

 

统一修改数据库表名字段大小写

 

相关文章:

  • 2021-11-17
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-11-17
  • 2021-12-28
猜你喜欢
  • 2022-03-08
  • 2022-01-24
  • 2021-11-29
  • 2022-12-23
  • 2021-09-17
  • 2021-11-28
相关资源
相似解决方案