ExamVeda
Login
Home
This question belongs to MySQL MySQL Miscellaneous
MySQL Miscellaneous
?

What does mysql_fetch_row() return?

Answer & Solution
Correct Answer: Option D
This question is asking about the output of the mysql_fetch_row() function in MySQL.
mysql_fetch_row() is used to fetch a row of data from a result set (a collection of data retrieved from a database query).
Let's break down the options:
Option A: integer - This is incorrect. mysql_fetch_row() doesn't return a single integer value.
Option B: float - Also incorrect. It doesn't return a single floating-point number.
Option C: structure - This is incorrect as well. mysql_fetch_row() doesn't return a structured data type.
Option D: pointer - This is the correct answer! mysql_fetch_row() returns a pointer to an array that contains the fetched row data. Each element in the array represents a column value from the row.
In simpler terms, imagine you're retrieving a row from a table. mysql_fetch_row() gives you a pointer to where the data for that row is stored, making it easy to access the individual values.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.