![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm working on an application in C++ using a MySQL 5 database with ADO connection. I send an UPDATE query and I'd like to know how many rows where affected by the command. I heard about a mysql_affected_rows() function for this purpose, but when I try to use it, it is not recognized by my C++ compiler. What exactly do you mean by that? |
#3
| |||
| |||
|
|
Yo wrote: Hello, I'm working on an application in C++ using a MySQL 5 database with ADO connection. I send an UPDATE query and I'd like to know how many rows where affected by the command. I heard about a mysql_affected_rows() function for this purpose, but when I try to use it, it is not recognized by my C++ compiler. What exactly do you mean by that? If you don't link with the mysql C API library, the linker will get irritable of course. |
#4
| |||
| |||
|
|
Hello, I'm working on an application in C++ using a MySQL 5 database with ADO connection. I send an UPDATE query and I'd like to know how many rows where affected by the command. I heard about a mysql_affected_rows() function for this purpose, but when I try to use it, it is not recognized by my C++ compiler. Is there a way to know the affected rows number by accessing some information from the ADO objects, like : ado20::_RecordsetPtr pRec = NULL; ado20::_ConnectionPtr pCon = NULL; Thankk you for your help. |
#5
| |||
| |||
|
|
The Natural Philosopher a utilisé son clavier pour écrire : Yo wrote: Hello, I'm working on an application in C++ using a MySQL 5 database with ADO connection. I send an UPDATE query and I'd like to know how many rows where affected by the command. I heard about a mysql_affected_rows() function for this purpose, but when I try to use it, it is not recognized by my C++ compiler. What exactly do you mean by that? If you don't link with the mysql C API library, the linker will get irritable of course. Thanks. So is there another way (rather than linking with mysql C API and using mysql_affected-rows()) to know how many rows were affected by my query ? Not that I know of. My problem is that I cant see why it wont work, and |
#6
| |||
| |||
|
|
On Mon, 25 Oct 2010 16:19:18 +0200, Yo wrote: Hello, I'm working on an application in C++ using a MySQL 5 database with ADO connection. I send an UPDATE query and I'd like to know how many rows where affected by the command. I heard about a mysql_affected_rows() function for this purpose, but when I try to use it, it is not recognized by my C++ compiler. Is there a way to know the affected rows number by accessing some information from the ADO objects, like : ado20::_RecordsetPtr pRec = NULL; ado20::_ConnectionPtr pCon = NULL; Thankk you for your help. If you're using ADO to managed the connection and execute the query, you'll have to use ADO to get the number of affected rows. One always has to stay within the framework... http://dev.mysql.com/doc/refman/5.0/...-microsoft-ado aah... |
![]() |
| Thread Tools | |
| Display Modes | |
| |