What is the function mysql_store_result() for?

Asked

Viewed 142 times

1

Hello, I’d like to know the real function of the mysql_store_result() method within the C++ language when we are working with mysql database.

  • This function is obsolete, the function should be used starting with mysqli_*

1 answer

0


It is used to transfer (fetch array) all the results of the consultation.

mysqli::store_result() will transfer all the generated result, while, unlikemysqli::use_result() will transfer line by line.

It is not recommended to use this command, as you would be loading everything at once and may overload the database. Not to mention, that during the execution of this command, changes in the database are not allowed.

  • Can you tell me where I find a good reference material that is in Portuguese taught more about the use of Mysql within C++? Because Unfortunately the only good quality content that I found seems to contain outdated functions and that on top of that is geared to the C language and not to C++.

  • @Khyser Generally the documentation of programming languages and DBMS are in English, it is difficult to find in Portuguese. A suggestion, the same commands that work in php when using mysql, also tend to dunk in c++, because in php has much more content.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.