如下的sql 语句是针对sqlserver 的 ,转到oracle ,需要改 吗,如果需要该怎么改啊 select a.id,SiteName,RuleID from Collect_Site a left outer join Collect_RuleApply b on a.ID = b.SiteID where a.ChannelID=10;
select a.id,a.channelName,a.ParentID,(select count(id) from sys_channel b where b.islock=0 and b.ParentID=a.id) as hashCount from sys_channel a where a.islock=0 and a.ParentID=@ParentID order by a.id asc
select a.*,(select count(id) from sys_channel b where b.islock=0 and b.isConstr=1 and b.ParentID=a.ID) as HashCount from sys_channel a where a.islock=0 and a.isConstr=1 and a.ParentID=@ParentID order by a.id asc
select a.id,a.channelName,a.ParentID,(select count(id) from sys_channel b where b.islock=0 and b.ParentID=a.id) as hashCount from sys_channel a where a.islock=0 and a.ParentID=@ParentID order by a.id asc
select a.*,(select count(id) from sys_channel b where b.islock=0 and b.isConstr=1 and b.ParentID=a.ID) as HashCount from sys_channel a where a.islock=0 and a.isConstr=1 and a.ParentID=@ParentID order by a.id asc
解决方案 »
- 像大家请教一下,Oracle多个表的自动标识列的问题
- 求助 oracle 10.2.0.5 升级 1086400.1 内容
- 如何查询oracle里面所有的实例?
- 求 如何将SHELL脚本中的参数,传递到pl/sql中
- Oracle特有的函数
- 求一SQL,请大家看看
- 谁知道哪里可以下载到oracle 9i啊,给提供个地址好嘛
- Oracle的初级问题,为何使用表的时候还要加方案名,如dk.tusers
- 我用的8.17以前的8X的Instance Manager变成了哪个?简单问题。第一个回答的得分
- oracle occi 插入图片慢
- Oracle 无监听程序
- 求高手回答,我刚毕业,做开发需要到国外目前11K,转oracle dba合适吗
@ParentID是变量吧,需要改个名字,
oracle中变量不能以@开头,一般以字母和下划线开头,
后面可使用字母、数字、下划线、#、$