SQL语句不能再ACCESS种执行,,NOT IN
Select * from DictField Where cBillName='支票' and Not cCaption in (Select Distinct cCaption from DictSetup Where cBillName='支票' and cObjType='Text')
=======================================================================
SQL中执行正常,,
ACCESS中错误:子查询 'cCaption' 中 Memo 或 OLE 对象无效.
请问什么原因,,
如果换成LEFT JOIN 该怎样写? 谢谢!
Select * from DictField Where cBillName='支票' and cCaption Not in (Select Distinct cCaption from DictSetup Where cBillName='支票' and cObjType='Text')
效果一样
SQL code:
Select * from DictField Where cBillName='支票'
and cCaption Not in
(Select Distinct cCaption from DictSetup Where cBillName='支票' and cObjType='Text')
这样ACCESS不支持>
Select * from DictField Where cBillName='支票' and cCaption Not in (Select Distinct cCaption from DictSetup Where cBillName='支票' and cObjType='Text')
换下位置!
SQL code:
---try
Select
*
from
DictField
Where
cBillName='支票'
and
cCaption
Not in (Select Distinct cCaption from DictSetup Where cBillName='支票' and cObjType='Text')
{{
相关问答:
今天做了一个存储过程 环境是SQL2000数据库
大致如下
建立临时表
定义员工游标
循环员工(属于1个公司)
......
从数据库中查询一张表的数据
select 部门,姓名 from tb
如何才能生成下面的xml格式
XML code:
<folder state="unchecked" label="全部">
<folder state="unchecked&qu ......
有一个数据库里只有2W条数据不到,却有500M那么大,怎么回事啊?是ACCESS的数据库。后来我把ACCESS导入到MSSQL中,也占用了500M左右的空间,如果压缩数据库呢?请高手指点
压缩数据库?能做到么...
期待高人指点 我 ......
现在有两张表:文章主表A(articleId,articleTitle),文章评论表B(commentId,articleId,commentTitle)
现在我想实现这样的功能:列出文章列表,其中每篇文章标题下面列出此文章的前2个文章评论,请问sql语句怎么写啊 ......