易截截图软件、单文件、免安装、纯绿色、仅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在linux上的使用

要在linux上使用sqlite是不是要先编译安装?怎么安装?
c#+sqlite+linux的相关应用有没有一些相关资料?
linux 上能运行C# ?

你可以下载编译好的,也可以下载源代码再自己编译
http://www.sqlite.org/downl ......

delphi 怎么样使用sqlite数据库?

手头有一个小CASE,要用到数据库,想采用SQLite。
有用过的朋友吗?
要怎么安装sqlite服务?还是不需要安装?
用什么软件来管理Sqlite数据库?如添加表,写存储过程等。
delphi中怎么样连接到sqlite数据库?用什 ......

c# + sqlite 出错!!! - .NET技术 / C#

c# + sqlite 出错!!!
File opened that is not a database file
file is encrypted or is not a database
和以前一样的写,怎么这次就是不行啊!!!
我快不行了,大家帮帮我啊!!!
见过一篇文章是说这个 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号