当前位置:网站首页>MySQL string function
MySQL string function
2022-07-06 17:01:00 【My71】
turn ASCII code
function :ASCII( character string )
Instructions
SELECT ASCII("A") AS ASCII code ;
Running results
Statistical string length
function :CHAR_LENGTH( character string )
Instructions
SELECT CHAR_LENGTH("abcde") AS String length ;
Running results
Merge strings
function :CONCAT(s1,s2…sn)
Instructions
SELECT CONCAT("My","SQL") AS Merge strings ;
Running results
Returns the position of the string
function :FIELD(s,s1,s2…)
explain : The return value is a string s stay s1,s2… Position in the list , The starting position is 1
Instructions
SELECT FIELD("a","b","c","a","d") AS To find the character a;
Running results
Character to lowercase
function :LCASE( character string )
Instructions
SELECT LCASE("aBcDeF") AS Turn lowercase ;
Running results
Capitalize characters
function :UCASE( character string )
Instructions
SELECT UCASE("aBcDeF") AS Turn capitalization ;
Running results
Before removal n Characters
function :LEFT( character string , Location )
Instructions
SELECT LEFT("aBcDeF",3) AS Take out the characters ;
Running results
边栏推荐
- 100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
- 7-5 blessing arrived
- 我走过最迷的路,是字节跳动程序员的脑回路
- Some instructions on whether to call destructor when QT window closes and application stops
- Shell_ 04_ Shell script
- 唯有学C不负众望 TOP2 p1变量
- Description of project structure configuration of idea
- js垃圾回收机制和内存泄漏
- LeetCode 1638. Count the number of substrings with only one character difference
- Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
猜你喜欢
随机推荐
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
LeetCode 1020. Number of enclaves
IDEA断点调试技巧,多张动图包教包会。
The daemon thread starts redis and modifies the configuration file
LeetCode 1640. Can I connect to form an array
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Error occurred during initialization of VM Could not reserve enough space for object heap
姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
Shell_ 04_ Shell script
冯诺依曼体系结构
Jedis
Mongodb在node中的使用
~83 form introduction
ByteDance open source Gan model compression framework, saving up to 97.8% of computing power - iccv 2021
一个数10年工作经验的微服务架构老师的简历
7-5 blessing arrived
Restful style interface design
面试集锦库
唯有学C不负众望 TOP2 p1变量
字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了