The application logs contain many entries of the following:
ERROR 1153 (OSSO1): Got a packet bigger than ‘max_allowed_packet’ bytes
Which two scenarios can hibernate this error message? (Choose two.)
The application tried to INSERT a row that exceeded max_allowed_packet.
The network caused an error Inducing the max_allowed_packet error.
The application did not use the COMPRESS () function for a large result set.
The application tried to SELECT many rows together that exceeded max__allowed_packet.
The application tried to SELECT a row that exceeded max_allowed_packet.
The operating system caused an error inducing the max_allowed_packet error.
Correct answer: DF
Question 2
Which two functions can be used in a C program to retrieve information about warning? (Choose two.)
mysql_info
mysql_error
mysql_warning_count
mysql_errno
Correct answer: AB
Question 3
You wish to create a trigger on the ‘city’ table that will check the value of the ‘District’ field before any INSERT. The trigger needs to change it to” Unknown” for an empty string or NULL.
CREATE TRIGGER City_bi
BEFORE INSERT ON CITY
FOR EACH ROW
BEGIN
IF OLD. District IS NULL OR OLD.District= . .
THEN
SET NEW.District=’Unknown’;
END IF :
END;
Does the CREATE TRIGGER statement accomplish this goal?
Yes; the trigger works correctly.
No; FOR EACH ROW is invalid syntax.
No; the syntax should be CREATE TRIGGER city-bi ON city BEFORE INSERT….
No; the OLD keyword cannot be used in an INSERT trigger.