access怎样取多个count(*)
select count(*) as count1 from tbl where....
select count(*) as count2 from tbl where....
怎样把两个句子合并成一个查询?
select count(*) as count1 from tbl where....
select count(*) as count2 from tbl where....
这两个结果不是一样吧?都是从 tbl 中取记录数?
select count(iif(条件1,1)) as count1,count(iif(条件2,1)) as count2 from tbl
我说的是同时取,就是在一条语句里取到。
select
(select count(*) as count1 from tbl where....),
(select count(*) as count2 from tbl where.... )
在sqlserver里可以取到。access里不行。
select * from
(select count(*) as count1 from A ) A1,
(select count(*) as count2 from A ) B1
select A1.count1,B1.count2 from
(select count(*) as count1 from A) A1,
(select count(*) as count2 from B) B1
select
(select count(*) as count1 from tbl where....),
(select count(*) as count2 from tbl where.... )
这个语句同样ACCESS中也可以啊。
相关问答:
ACCESS数据库中有一个tablename表,设计如下
编号,书名,作者,出版时间,出版社,ISBN,目录,简介
其中除“编号”为自动编号外,其它都为“备注”
其中"编号"维一,在“ISBN”中有的为空值, ......
Dbgrid连接access 显示数据时拖动滚动条死机?怎么解决啊?
机器太差了吧?
是不是你数据量太大了啊
你数据少一些看看还死机吗?
数据很少啊 就一页。
我在BCB6下做过不少 DBGRID+ACCESS ,从来没有遇到 ......
请问各位大师,我现在需要将XML的数据实时的存入到数据库中,我是用asp编的程序,大量们帮忙分析 一下!!!
下面是我的XML文件代码
XML code:
<?xml version="1.0" encoding="utf-8"? ......
如题,省份要求全称
????????
找 IP库
留个邮箱给我,我发给你
查GB/T2260 2007 自己整理一下
不懂啥意思耶!
http://www.popub.net/script/pcasunzip.html
楼上给的地址,可不能下载啊.
引 ......
access中的text型的数字,怎么比较大小啊?
大家知道吗?
因为我想根据这一列数据的大小查询一些东西
举个例子:
就是,我有一列数据为编码:
是text型的数字:如
1101
1102
1103
等,
我现在要取出编码比 ......