Mysql Compound Statements
- The columns containing binary value that include null bytes will not print properly using the %s printf() format specifier.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The columns containing binary value including null bytes do not print properly using the %s printf() format specifier. printf() expects a null terminated string. It prints the column value only up to the first null byte.
- mysql_fetch_row() returns _______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
‘mysql_fetch_row()’ returns a MYSQL_ROW value, a pointer to an array of values. If the return value is assigned to a variable named row each value within the row is accessed as row[i].
- How many of the following return rows?
SELECT, SHOW, DESCRIBE
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, it is important to note that ‘SELECT’ is not the only statement that returns some rows. Statements like ‘SHOW’, ‘DESCRIBE’, ‘EXPLAIN’ and ‘CHECK TABLE’ do so as well.
- What executes on a time activated basis according to a schedule?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In MySQL, the events execute on a time activated basis according to a schedule. Triggers are defined to execute when the table is modified via INSERT, DELETE or UPDATE statements.
- Which character does the mysql client program recognize as a statement delimiter?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
By default, mysql itself recognizes the semicolon as a statement delimiter, so the delimiter must be redefined temporarily to cause mysql to pass the entire stored program definition to the server.