当前位置:网站首页>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 !!!
边栏推荐
- Discussion on the integration of storage and calculation and the calculation in storage
- Tesseract text recognition -- simple
- Multiple knapsack, simplicity and binary optimization
- What are the backup and recovery methods of gbase 8s database
- Data representation and calculation (base)
- Sublime text create page
- Evaluation index of machine learning classification model and implementation of sklearn code
- Qmainwindow details
- 原型链继承和构造函数继承的 “毛病”
- 附录2-一些简单的练习
猜你喜欢

Outlook tutorial, how to create an electronic signature in outlook?

STM32 application development practice tutorial: getting to know STM32 for the first time
The biggest upgrade of Bluetooth over the years: Bluetooth Le audio is about to appear in all kinds of digital products

Leetcode question brushing (6)

Discussion on the integration of storage and calculation and the calculation in storage
[C language] DataGridView binding data

Regular expression verification version number

Asp graduation project - based on C # +asp Net+sqlserver laboratory reservation system design and Implementation (graduation thesis + program source code) - Laboratory Reservation System

Leetcode: interview question 08.14. Boolean operation

Introduction to translation professional qualification (level) examination
随机推荐
Tesseract图文识别--简单
Leetcode: interview question 08.14. Boolean operation
怎样查询快递物流筛选出无信息单号删除或者复制
Rocky基础之编译安装apache
Notes on network principles (five layer network)
Restful style details
User identity identification and account system practice
How does alternates achieve high-performance publish and subscribe?
01 knapsack about from two-dimensional optimization to one-dimensional optimization
2022 electrician (elementary) test question simulation test platform operation
【Unity入门计划】C#与Unity-了解类和对象
NFA determination and DFA minimization based on C language
The use and Simulation of string function, character function and memory function
C # use database to bind listview control data
查看端口占用情况
机器学习之分类模型评估指标及sklearn代码实现
English high frequency suffix
STM32 application development practice tutorial: design and implementation of controllable LED water lamp
ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
C# 使用数据库对ListView控件数据绑定