Mysql miscellaneous


  1. Which of these is not a comment specifying construct?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The MySQL server understands three types of comments. The single line ‘#’ construct, the multiline /*…*/ construct and the — comment construct. MySQL conforms to the comment standards of SQL.


  1. The columns containing binary value that include null bytes will print properly using the %s printf() format specifier.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    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.



  1. What does mysql_fetch_row() return?











  1. 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].


  1. What is the Perl DBI?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The Perl DBI is the Perl Database Interface. The work of the interface is to form a link between the application programming interface in C with all the other programming languages.



  1. What is the default path to perl in Unix?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    All Perl scripts generally begin with a #! (shebang) line. A script is a file containing a sequence of commands. The Perl scripts are text files, which can be ceated using any text editor.