易截截图软件、单文件、免安装、纯绿色、仅160KB

sqlite老是报错no such column

SELECT qsmallClass.Sname, qproducts.pmodel, qproducts.punit, qmaintain.mcount from qsmallClass INNER JOIN (qproducts INNER JOIN qmaintain ON qproducts.pid = qmaintain.pid) ON qsmallClass.Sid = qproducts.Sid

报错  no such column: qproducts.pmodel

请问这是怎么回事,要如何解决?
qproducts.表中有这一列pmodel吗?

.schema qproducts

看一下你的表结构。

qproducts.pmodel:列存在吗

引用
qproducts.表中有这一列pmodel吗?

.schema qproducts

看一下你的表结构。


这一列肯定存在

这三个表的结构如下:

create table qmaintain(mid integer primary key,mvid,pid,mcount);
create table qsmallclass(sid integer primary key,sname,bid);
create table qproducts(pid integer primary key,sid,pmodel,pbrand,punit,pmoney,pcount,pmaintains,preturns,pdesc);


多谢楼上,问题解决


相关问答:

sqlite 高手进来啊

小弟 弄点东西可是调用 sqlite3_prepare 这个函数 select 就好使 只要 改变数据库 的就不行 比如insert 之类的 谁来帮个忙啊 请问这是什么原因 啊 用 c 去实现的
你用的什么工具啊?
把你自己的代码发 ......

SQLite取整数函数是哪个?

更新语句中:
UPDATE sc SET AA=INT(BB)
我想让AA得到BB的整数值。可是运行报错。
不知道SQLite下 取整数部分的函数是哪个?(四舍五入的函数又是哪个?)。
如果知道还有其他函数请一并告知,谢谢。

ROUND
......

.net访问SQLite问题

我安装了一个sqlite developer,一个可视化的工具。
接着,我又安装了SQLite.NET,并在VS里面添加好了dll。
现在,我在sqlite developer里创建了一个数据库,库中包含我自己定义的一张表。

问题:如何 ......

delphi 怎么样使用sqlite数据库?

手头有一个小CASE,要用到数据库,想采用SQLite。
有用过的朋友吗?
要怎么安装sqlite服务?还是不需要安装?
用什么软件来管理Sqlite数据库?如添加表,写存储过程等。
delphi中怎么样连接到sqlite数据库?用什 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号