SQL MCQ Quiz Hub

SQL MCQ SET 5

Choose a topic to test your knowledge and improve your SQL skills

1. The argument to the function mysql_error() is ________




2. What does mysql_real_connect() return if it fails?




3. The –protocol value ‘TCP’ runs on which operating systems?




4. The general statement-issuing routine is _______




5. For failure, mysql_query() returns ______




6. mysql_fetch_row() returns ______




7. What enables encrypted connections to be established?




8. The exec_stmt_ssl is written in ______




9. On failure, ‘mysql_query()’ returns ______




10. Which mode prevents MySQL to perform full checking of date parts?




11. Which statement is used to determine the storage engine for individual tables?




12. Which table in the ‘INFORMATION_SCHEMA’ stores information about storage engines and server plugins?




13. The embedded server library containing the MySQL server linkable into applications is ______




14. When building from source, the embedded server library is enabled by _____




15. Which clause is used to display information that matches a given pattern?




16. Comparing a known value with NULL results into _______




17. Which is the command to move the cursor to the beginning of line in mysql input editor?




18. The name of the option file in Unix is ______




19. System variable in MySQL server that enables to configure the SQL mode is ____




20. Which option enables multiple-statement execution?




21. Which option executes all SQL statements in a SQL script irrespective of the number of errors?




22. To see the table structure which command is issued?




23. Which character is illegal in naming an unquoted identifier in SQL?




24. Which statement is valid if ‘`sampledb`’ is a database and ‘`tbl`’ is a table in it?




25. The default case sensitivity of the database and table names depends on ___________




26. The maximum collations a character set can have is ______________




27. A synonym for CHARACTER SET is ______




28. The statement used to select a default database is ______




29. The statement that makes changes to the global attributes of the database is ______




30. The statement used to remove indexes on tables is _____




31. The statement used to change the table name is ____




32. What is the general term for information about databases and the objects in MySQL?




33. The shebang line is ______




34. The Perl DBI is _______




35. The default path to perl in Unix is ______




36. Which is the join in which all the rows from the right table appear in the output irrespective of the content of the other table?




37. What is the facility that allows nesting one select statement into another?




38. Which of these operators does not perform relative value comparisons?




39. To combine multiple retrievals, which keyword is used to write several SELECT statements between them?




40. Issuing ‘SELECT’ on a MERGE table is like ______




41. In Perl DBI, functions are called ______




42. Which variable is used as a handle to an open file?




43. The variable that is a handle to a database object is ______




44. Which variable returns code from operations that return true or false?




45. The statement to remove indexes on tables is _______




46. What allows nesting one select statement into another?




47. The operator that does not perform relative-value comparisons is ________




48. The key declares that an index in one table is related to that in another is called ______




49. The generic handle whose meaning depends on context is _____




50. The non handle array representing a row of values is ________