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

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')

{{


相关问答:

SQL如何优化问题 - MS-SQL Server / 疑难问题

今天做了一个存储过程   环境是SQL2000数据库  
大致如下
建立临时表
定义员工游标
        循环员工(属于1个公司)  
        ......

数据以xml格式返回 - MS-SQL Server / 应用实例

从数据库中查询一张表的数据
select 部门,姓名 from tb
如何才能生成下面的xml格式
XML code:
<folder state="unchecked" label="全部">
   <folder state="unchecked&qu ......

关于ACCESS和MSSQL的问题 - Web 开发 / ASP

有一个数据库里只有2W条数据不到,却有500M那么大,怎么回事啊?是ACCESS的数据库。后来我把ACCESS导入到MSSQL中,也占用了500M左右的空间,如果压缩数据库呢?请高手指点
压缩数据库?能做到么...
期待高人指点 我 ......

求一sql语句 - MS-SQL Server / 疑难问题

现在有两张表:文章主表A(articleId,articleTitle),文章评论表B(commentId,articleId,commentTitle)
现在我想实现这样的功能:列出文章列表,其中每篇文章标题下面列出此文章的前2个文章评论,请问sql语句怎么写啊 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号