Advanced functions Flashcards

1
Q

Returns a binary representation of a number

A

BIN

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

Converts a value to a binary string

A

BINARY

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

Goes through conditions and return a value when the first condition is met

A

CASE

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

Converts a value (of any type) into a specified datatype

A

CAST

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

Returns the first non-null value in a list

A

COALESCE

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

Returns the unique connection ID for the current connection

A

CONNECTION ID

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

Converts a number from one numeric base system to another

A

CONV

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

Converts a value into the specified datatype or character set

A

CONVERT

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

Returns the user name and host name for the MySQL account that the server used to authenticate the current client

A

CURRENT USER

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

Returns the name of the current database

A

DATABASE

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

Returns a value if a condition is TRUE, or another value if a condition is FALSE

A

IF

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

Return a specified value if the expression is NULL, otherwise return the expression

A

IFNULL

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

Returns 1 or 0 depending on whether an expression is NULL

A

ISNULL

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

Returns the AUTO_INCREMENT id of the last row that has been inserted or updated in a table

A

LAST INSERT ID

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

Compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned

A

NULLIF

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

Returns the current MySQL user name and host name

A

SESSION USER

17
Q

Returns the current MySQL user name and host name

A

SYSTEM USER

18
Q

Returns the current MySQL user name and host name

A

USER

19
Q

Returns the current version of the MySQL database

A

VERSION