Hello friends,
I am trying to connect mySQL thru g++. I could connect the db and
execute a query. But I want to get a value from key board and pass the
same inside the query.
ie,
This is the query I am passing.
mysql_query(connection,insert into table-name values
('1','aaa','bbb','ccc
]
[EMAIL PROTECTED]
- Original Message -
From: Dileep M. Kumar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 1:10 PM
Subject: g++ and mySQL]
Hello friends,
I am trying to connect mySQL thru g++. I could connect the db and
execute
calling mysql_real_escape_string())
Or alternatively, use the mysqlcpp, the C++-API (which I am not so
fond of).
HTH,
Benjamin.
[...]
I am trying to connect mySQL thru g++. I could connect the db and
execute a query. But I want to get a value from key board and pass the
same
Hi Benjamin,
- Original Message -
From: Benjamin Pflugmann [EMAIL PROTECTED]
To: Gelu Gogancea [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 4:23 PM
Subject: Re: g++ and mySQL]
Hi.
On Thu 2003-01-16 at 13:54:14 +0200, [EMAIL PROTECTED
On Thu, Jan 16, 2003 at 01:54:14PM +0200, Gelu Gogancea wrote:
If i understand well you wish to concatenate different strings.
Are many options but the most handy solution is if you use sprintf.
Thanks I got the answer.
sprintf(QueryStr,INSERT INTO %s VALUES ('%s', '%s', '%s', '%s'),
Hi all,
I hava a little problem for developping a windows mysql client program in
C++.
I compile it using cygwin. there is no problem during the compilation but
when I execute it, it seems that when I execute a select query and retrieve
the data, it access memory that it shouldn't. I tested my