Which of the following does not return a value?
mysql_close(), mysql_init, mysql_real_connect
mysql_close(), mysql_init, mysql_real_connectA. 0
B. 1
C. 2
D. 3
Answer: Option B
Solution (By Examveda Team)
This question asks about MySQL functions that don't return any value. We need to find the function that doesn't give us a result.Let's analyze the options:
* mysql_close(): This function closes an existing database connection. It doesn't need to provide a result, so it doesn't return a value. * mysql_init: This function initializes a MySQL connection handle. Like closing a connection, it doesn't need to return a value. * mysql_real_connect: This function establishes a connection to a MySQL database server. It usually returns a value (either 1 for success or 0 for failure).
Therefore, the answer is both mysql_close() and mysql_init don't return a value.
Related Questions on MySQL Miscellaneous
How is communication established with MySQL?
A. SQL
B. Network calls
C. A programming language like C++
D. APIs
Which type of database management system is MySQL?
A. Object-oriented
B. Hierarchical
C. Relational
D. Network

Join The Discussion