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

边栏推荐
- Cartesian tree (modified)
- 100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
- ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
- How to generate six digit verification code
- LeetCode 1558. Get the minimum number of function calls of the target array
- Shell_ 00_ First meeting shell
- Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
- Introduction to microservices
- LeetCode 1020. Number of enclaves
- 算数运算指令
猜你喜欢

MySQL字符串函数

~81 long table

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

LeetCode 1637. The widest vertical area between two points without any point

Install docker under windows10 (through Oracle VM VirtualBox)

Erlang installation

ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues

~82 style of table

Shell_ 03_ environment variable

Log4j2 major vulnerabilities and Solutions
随机推荐
DOS 功能调用
Record the error reason: terminate called after throwing an instance
~86m rabbit practice
Restful style interface design
Alibaba cloud server builds SVN version Library
Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
Solr standalone installation
Solr new core
「博士毕业一年,我拿下 ACL Best Paper」
~77 linear gradient
LeetCode 1020. Number of enclaves
Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
~71 abbreviation attribute of font
Continue and break jump out of multiple loops
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
After idea installs the plug-in, restart the plug-in and disappear
Log4j2 major vulnerabilities and Solutions
Shell_ 01_ data processing
Data config problem: the reference to entity 'useunicode' must end with ';' delimiter.
算数运算指令