Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

How to Insert into table with c++? (no replies)

$
0
0
I am new to SQL.

Hi, I have the following c++ code to display table.

int ip = mysql_query(conn,"SELECT * FROM IP_TABLE");

res = mysql_use_result(conn);

if (ip==0) while ((row = mysql_fetch_row(res)) != NULL) printf("%s \n", row[0]);

Using the same technique, how would I insert into IP_TABLE???

Thanks in advance.

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>