当前位置:网站首页>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 !!!
边栏推荐
猜你喜欢
网络原理笔记(五层网络)
mysql怎么换成中文
Regular expression verification version number
(Video + graphics) introduction to machine learning series - Chapter 1 Introduction
User identity identification and account system practice
Discussion on the integration of storage and calculation and the calculation in storage
ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
NFA determination and DFA minimization based on C language
Sublime text create page
Notes on network principles (five layer network)
随机推荐
[performance optimization methodology series] III. core idea of performance optimization (2)
Excellent Allegro skill recommendation
Information system project manager must recite the quality grade of the core examination site (53)
Group Backpack
dataframe. to_ Sql() inserts too many errors at one time
【集中培训】HCIP-Cloud Computing 资源交流帖
One article tells you the salary after passing the PMP Exam
Emmet syntax
Compile and install Apache for rocky Foundation
C# 使用RestSharp库实现POST请求
What should I pay attention to now? Excuse me, is it safe to open a stock account by mobile phone?
Network knowledge summary
36. JS动画
A structured random inactivation UNET for retinal vascular segmentation
【Unity入门计划】常用学习网址收藏
Flowable 高级篇
Solve the problem of false Base64 character in Base64
Flowable UI production flow chart
Introduction to translation professional qualification (level) examination
MySQL 错误总结