Instruction
Good!
That's it for this section! Before we move on, let's review what we've learned:
||is the concatenation operator. The||operator and theCONCAT()function are the concatenation functions. Both merge multiple strings into one.LENGTH(s)returns the length of a string.LOWER()andUPPER()functions change all letters in a string to lowercase or uppercase.INITCAP(t)changes the first letter of each word of stringtto title case.LTRIM(s),RTRIM(s), andTRIM(s)return a string after removing spaces from the left, right, or both sides of a given strings.LTRIM(s, 'set'),RTRIM(s, 'set'), andTRIM(s, 'set')return a string after removing custom set of characters from the left, right, or both sides of a given strings.SUBSTRING(s, x, y)returns part of strings, starting from positionxand returning the number of characters defined byy.LEFT(s, n)returns the firstncharacters as the substring from the left side (beginning of the string).RIGHT(s, n)returns the lastncharacters as the substring from the right side (end of the string).POSITION(c IN s)finds the first occurance (index) of stringcin strings.STRPOS(s, c)does the same as thePOSITION()function but has a different syntax.REVERSE()returns text with all the characters in reverse order.REPLACE(string, from, to)will replacefromwithtoin thestringstring.TRANSLATE(string, from, to)will make replacements instringbased on the sets passed as strings into thefromandtoparameters.REPEAT(x, n)will return thexstring repeatedntimes.
Now it's time to practice!
Exercise
Click to begin.



