String functions Flashcards

1
Q

Returns the ASCII value for the specific character

A

ASCII

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Returns the length of a string (in characters)

A

CHAR LENGTH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Returns the length of a string (in characters)

A

CHARACTER LENGTH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Adds two or more expressions together

A

CONCAT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Adds two or more expressions together with a separator

A

CONCAT WS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Returns the index position of a value in a list of values

A

FIELD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Returns the position of a string within a list of strings

A

FIND IN SET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Formats a number to a format like “#,###,###.##”, rounded to a specified number of decimal places

A

FORMAT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Inserts a string within a string at the specified position and for a certain number of characters

A

INSERT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Returns the position of the first occurrence of a string in another string

A

INSTR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Converts a string to lower-case

A

LCASE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Extracts a number of characters from a string (starting from left)

A

LEFT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Returns the length of a string (in bytes)

A

LENGTH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Returns the position of the first occurrence of a substring in a string

A

LOCATE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Converts a string to lower-case

A

LOWER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Left-pads a string with another string, to a certain length

A

LPAD

17
Q

Removes leading spaces from a string

A

LTRIM

18
Q

Extracts a substring from a string (starting at any position)

A

MID

19
Q

Returns the position of the first occurrence of a substring in a string

A

POSITION

20
Q

Repeats a string as many times as specified

A

REPEAT

21
Q

Replaces all occurrences of a substring within a string, with a new substring

A

REPLACE

22
Q

Reverses a string and returns the result

A

REVERSE

23
Q

Extracts a number of characters from a string (starting from right)

A

RIGHT

24
Q

Right-pads a string with another string, to a certain length

A

RPAD

25
Q

Removes trailing spaces from a string

A

RTRIM

26
Q

Returns a string of the specified number of space characters

A

SPACE

27
Q

Compares two strings

A

STRCMP

28
Q

Extracts a substring from a string (starting at any position)

A

SUBSTR

29
Q

Extracts a substring from a string (starting at any position)

A

SUBSTRING

30
Q

Returns a substring of a string before a specified number of delimiter occurs

A

SUBSTRING INDEX

31
Q

Removes leading and trailing spaces from a string

A

TRIM

32
Q

Converts a string to upper-case

A

UCASE

33
Q

Converts a string to upper-case

A

UPPER