当前位置:网站首页>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

边栏推荐
- How to configure hosts when setting up Eureka
- Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
- LeetCode 1641. Count the number of Lexicographic vowel strings
- Shell_ 05_ operator
- The 116 students spent three days reproducing the ByteDance internal real technology project
- Record the error reason
- 7-12 inventory code base
- LeetCode1556. Thousand separated number
- LeetCode 1562. Find the latest group of size M
- Mongodb在node中的使用
猜你喜欢

Activiti目录(五)驳回、重新发起、取消流程

Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.

~69 other ways to use icon fonts

Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance

MySQL数字函数

High performance mysql (Third Edition) notes

TCP的三次握手和四次挥手

MySQL optimization notes

字节跳动海外技术团队再夺冠:高清视频编码已获17项第一

~83 form introduction
随机推荐
LeetCode 1637. The widest vertical area between two points without any point
LeetCode 1551. Minimum operand to make all elements in the array equal
Activiti目录(一)重点介绍
redux使用说明
~77 linear gradient
~79 Movie card exercise
数据传送指令
LeetCode 1561. The maximum number of coins you can get
Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
[unsolved] 7-15 shout mountain
Record the error reason: terminate called after throwing an instance
LeetCode 1584. Minimum cost of connecting all points
LeetCode 1638. Count the number of substrings with only one character difference
The QT program compiled on CentOS lacks a MySQL driven solution
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
The daemon thread starts redis and modifies the configuration file
在 vi 编辑器中的命令模式下,删除当前光标处的字符使用 __ 命 令。
Alibaba cloud server docker installation mysql5.5
LeetCode1556. Thousand separated number
汇编语言基础知识