yes, it is CityName, but it is not the point, setInt works abnormally..

By the way, I found there is not a thorough introduction to the mysql c++ 
connector, can you give me some hint?

-----邮件原件-----
发件人: Johan De Meersman [mailto:vegiv...@tuxera.be]
发送时间: 2013年2月19日 16:36
收件人: ZhangFangXue
抄送: mysql@lists.mysql.com
主题: Re: 答复: PreparedStatement problem

----- Original Message -----
> From: "ZhangFangXue" <zhangfang...@sogou-inc.com>
>
> well, the problem is that I used it like this:
> prep_stmt = con -> prepareStatement ("INSERT INTO City (CityNumber)

The statement in your original mail used CityName, which sounds like it should 
be a string. Fieldname confusion?


--
Unhappiness is discouraged and will be corrected with kitten pictures.

Reply via email to