Casue的SQLite的错误:错误#3132:数据类型不匹配。“在Adobe AIR [英] Casue of SQLite Error: 'Error #3132: Data type mismatch.' in Adobe AIR

查看:418
本文介绍了Casue的SQLite的错误:错误#3132:数据类型不匹配。“在Adobe AIR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"SELECT * FROM locations 
 JOIN section_has_location ON locations.location_id = section_has_location.location_id 
 WHERE section_has_location.chapter_id =2 
   AND section_has_location.section_id=2"

我得到的错误:

I get the error:

SQLERROR:错误#3132:数据类型不匹配,详细信息:文本值不能转换为数值。,操作:执行,detailID:2300

SQLError: 'Error #3132: Data type mismatch.', details:'could not convert text value to numeric value.', operation:'execute', detailID:'2300'

这些都是表:

CREATE TABLE locations ( 
    location_id INTEGER,
    name        TEXT,
    mask_id     TEXT,
    x           REAL,
    y           REAL,
    content     TEXT,
    image_url   TEXT,
    type        TEXT 
);

CREATE TABLE section_has_location ( 
    chapter_id  INTEGER,
    section_id  INTEGER,
    location_id INTEGER 
);

如何解决的查询,以不导致错误?

更新:我导出的所有数据,并导入到一个新的干净的数据库。这似乎已经解决了这个错误。

update: I exported all the data, and imported into a new clean database. This seems to have solved that error.

推荐答案

我只是把你的code,创建的表和运行查询,它工作正常。

I just took your code, created the tables and ran the query and it works fine.

即时猜测你做了什么,也许是编辑的一列的类型,但该表尚未更新,请尝试sp_help将tablenamehere或看在对象资源管理器,如果您使用的是管理工作室,并检查数据类型是一个什么样的列,或者您可能更容易只下降两个表并重新创建它们

Im guessing what you have done is maybe edited the type of one of the columns but the table hasn't been updated, try sp_help tablenamehere or look in object explorer if you are using management studio and check what the datatype is of your columns, or if you can it may be easier to just drop both tables and recreate them

这篇关于Casue的SQLite的错误:错误#3132:数据类型不匹配。“在Adobe AIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆