0

我正在使用 MSvisual C++ 2008 并运行以下代码将值插入到 db.MYSQL 服务器 5.1 是数据库。

请让我知道为什么它没有插入并让我知道问题出在哪里。

4

1 回答 1

0
  1. Your insert statement on the values looks like it could be missing the first comma.
  2. Just throwing out that strGdt directly into the values end looks mighty suspectful.

  3. Probably most helpful in the long run: Use some error detection. Are you getting any exceptions? What comes out on the debugging console? Try using some mysql error functions. Add some logging... These are just the tip of the iceberg as far as options on trying to figure out what is wrong with this... yourself.

Hope this helps.

于 2012-01-06T11:01:09.303 回答