当前位置:网站首页>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
边栏推荐
- Shell_ 02_ Text three swordsman
- Data config problem: the reference to entity 'useunicode' must end with ';' delimiter.
- Monomer application concept
- DS18B20數字溫度計系統設計
- ~85 transition
- Usage of insert() in vector
- Only learning C can live up to expectations top5 S1E8 | S1E9: characters and strings & arithmetic operators
- Activiti目录(四)查询代办/已办、审核
- Eureka single machine construction
- 面试集锦库
猜你喜欢
汇编语言段定义
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
README. txt
LeetCode 1558. Get the minimum number of function calls of the target array
7-10 punch in strategy
was unable to send heartbeat
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
LeetCode 1637. The widest vertical area between two points without any point
High performance mysql (Third Edition) notes
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
随机推荐
面试集锦库
TypeScript基本操作
The difference between URI and URL
MySQL字符串函数
~77 linear gradient
~74 JD top navigation bar exercise
The 116 students spent three days reproducing the ByteDance internal real technology project
LeetCode 1641. Count the number of Lexicographic vowel strings
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
(multiple methods, need to continue to see) 7-11 go deep into the tiger's Den
DS18B20数字温度计系统设计
Eight part essay that everyone likes
Shell_ 06_ Judgment and circulation
7-7 ring the stupid bell
Solr word segmentation analysis
冯诺依曼体系结构
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Monomer application concept
数据传送指令