Common functions of mysql

*, the left function of mysql string operation

Core syntax: left(str,length);
str: target string
length: the length to be intercepted (one character in Chinese and English counts as one unit)
Translation: truncate length characters from the first character on the left of str

 

*, right function of mysql string operation

Core syntax: right(str,length);
str: target string
length: the length to be intercepted (one character in Chinese and English counts as one unit)
Translation: intercept length characters from the first character on the right of str

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326395953&siteId=291194637