Re: Unable to insert data in MYSQL using C.
No.I suggest to use mysql_errno() for mysql_query() or mysql_real_query() not for mysql_real_connect().
if(mysql_query(conn,your_statement)) {
printf("Error %u : %s /n",mysql_errno(conn), mysql_error(conn));
exit(1);
}
Regards,
Subject
Views
Written By
Posted
1342
July 02, 2010 09:06AM
509
July 05, 2010 01:43PM
541
July 06, 2010 07:10AM
569
July 27, 2010 05:25AM
528
July 27, 2010 01:29PM
Re: Unable to insert data in MYSQL using C.
537
July 27, 2010 03:04PM
566
July 28, 2010 05:42AM
487
September 04, 2010 07:14AM
486
July 20, 2010 01:58PM
469
September 04, 2010 07:10AM
519
November 14, 2010 05:10AM
551
February 01, 2011 03:47AM
602
February 01, 2011 06:04AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.