我只是想从两张表中,取得一张表的所有字段,另一张表,我想根据条件取得一个统计值,但是这个语句是有问题的,不知道如何修改能符合我的要求select t.id, t.title, t.createdate,count(s.*)
from callboard t,callboard_view s
where t.id=s.safeboardid and s.viewflag=0
from callboard t,callboard_view s
where t.id=s.safeboardid and s.viewflag=0
解决方案 »
- 急!!!!sql 优化 下面sql要优化吗
- ?????关注 odbc如何只显示自己用户建立的表
- 【觅秘】请问一下在客户段PL/SQL中DML语句(INSERT/UPDATE/DELETE),经办时间是以服务器时间计入系统数据库,还是以客户端时间计入系统数据库??
- 求sql, 不用存储过程可以实现吧
- 关于oracle多表联合查询的问题
- java ArrayIndexOutOfBoundsException KeyStore
- 怎么用EXP导出一个表?
- Oracle插入时间格式!
- 请问数据库里用太多外健好么?
- 为什么我的oracle8 安装到Windows2000 AdvancedServer(d盘)数据库总是出现不能发现SID错误?而且……
- 出现ORA-02001: 用户 SYS 不允许创建可用列表组的索引
- 数据库的外连接问题
from callboard t,callboard_view s
where t.id=s.safeboardid and s.viewflag=0
from callboard t,callboard_view s
where t.id=s.safeboardid and s.viewflag=0
from callboard t,callboard_view s
where t.id=s.safeboardid and s.viewflag=0
group by t.id, t.title, t.createdate
from callboard t,callboard_view s,(select count(*) from callboard_view) aa
where t.id=s.safeboardid and s.viewflag=0这个是随便写的,不知道能不能执行select * from clientcontent c,(select count(*) from userinfo) aa这条是在我数据库测试过的测试过的,
clientcontent和userinfo是不同的表,查询结果,会在clientcontent后面加上一条数据(aa表的条数)