当前位置:网站首页>MySQL converts some table names to uppercase
MySQL converts some table names to uppercase
2022-07-29 09:21:00 【The sea is upside down, my God】
One 、 Execute the following command (wen51 Name your database , Just change here , Nothing else needs to be changed ), Get the capitalization conversion of all table names in this database SQL sentence .
SELECT
concat('alter table ', TABLE_NAME , ' rename to ' , upper(TABLE_NAME) ,' ;' )
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = 'wen51';

Two 、 Change your table name to upper case SQL Statements from “ result 1” It's copied out of , It can be executed together .
3、 ... and 、 Step on the pit diary
alter table Original table name rename to The new name of the table ;
for example :
alter table sys_area rename to sys_area1;
There is nothing wrong with execution !
however !!!
ALTER TABLE act_app_deployment RENAME TO UPPER('act_app_deployment');
Will always report a mistake 1064 error !!!
UPPER The usage function :
In short :UPPER Must be used in SELECT Back , It is only used to display the results !!!
边栏推荐
- C# 使用RestSharp库实现POST请求
- 不用Swagger,那我用啥?
- 201803-3 CCF URL映射 满分题解
- C # use database to bind listview control data
- No swagger, what do I use?
- Unity 引导系统.点击目标物体后提示文字变色进入下一步
- 多标签用户画像分析跑得快的关键在哪里?
- Leetcode deduction topic summary (topic No.: 53, 3, 141, interview question 022, the entry node of the link in the sword finger offer chain, 20, 19, Niuke NC1, 103, 1143, Niuke 127)
- Introduction to translation professional qualification (level) examination
- I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime
猜你喜欢

Handwritten character recognition

Asp graduation project - based on C # +asp Design and implementation of enterprise investment value analysis system based on. Net + sqlserver (graduation thesis + program source code) -- enterprise in

Unity 引导系统.点击目标物体后提示文字变色进入下一步

存算一体与存内计算计算杂谈

Discussion on the integration of storage and calculation and the calculation in storage

Leetcode: interview question 08.14. Boolean operation

Leetcode deduction topic summary (topic No.: 53, 3, 141, interview question 022, the entry node of the link in the sword finger offer chain, 20, 19, Niuke NC1, 103, 1143, Niuke 127)

STM32 application development practice tutorial: design and implementation of controllable LED water lamp

Quick sorting (quick sorting) (implemented in C language)

附录2-一些简单的练习
随机推荐
分布式Session共享的4类技术方案,与优劣势比较
MySQL 错误总结
简述堆和栈的区别
C# 使用数据库对ListView控件数据绑定
01 knapsack about from two-dimensional optimization to one-dimensional optimization
English high frequency suffix
AI is at the forefront | focusing on natural language processing, machine learning and other fields; From Fudan University, Institute of automation, Chinese Academy of Sciences and other teams
Study and exploration of Redux API implementation of Redux
Retinal Vessel Segmentation via a Semantics and Multi-Scale Aggregation Network
Tesseract text recognition -- simple
Mathematical modeling - Differential Equations
Network knowledge summary
Axurerp prototype design starts quickly
MySQL的数据类型
Evaluation index of machine learning classification model and implementation of sklearn code
Floweable advanced
Shutter gradient
AxureRP原型设计 快速开始
GBase 8s数据库有哪些备份恢复方式
md