Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 今天发现sqlite数据库的怪问题,大家遇到过吗?
Forum Updated to NodeBB v4.3 + New Features

今天发现sqlite数据库的怪问题,大家遇到过吗?

Scheduled Pinned Locked Moved Chinese
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    smallghost
    wrote on last edited by
    #1

    QSqlQuery查询一条记录明显是没有这条记录的,但是query.record().count()返回值为1,再调用query.first()是返回是false。sql语句如下:
    select id,name from tmp_use where id = 99;
    这条sql语句用sqlite管理工具绝对是查不出记录的。奇了怪了!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved