oracle sql可以定义变量吗?或者其他办法? 本帖最后由 u014640667 于 2014-05-15 19:03:09 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 declare m_int int ;beginselect count(*) into m_int from mytable where ..... ; for i in 1..m_int loop-- to do ......end loop ; end ; 创建全文索引报ora-10509错 关于 not in 里有 空值的处理方法 数据库查询的问题,解决送100分,或是送一个国际域名,或是100M空间! 这个SQL应该怎么写啊,给100分了 oracle如何用一条语句删除两个表的内容 有什么命令可以知道对一句sql的编译是否能够通过,而不去执行这sql? 重复资料删除问题, 机死人了 oracle怎么定期自动执行一个过程? ODBC 访问 Oracle,究竟能不能不装Oracle 客户端? select ???? 我是一名大二学生 数据库为oracle, 统计时用到时间段,条件加上<=或者>=索引无效?
declare m_int int ;
begin
select count(*) into m_int from mytable where ..... ;
for i in 1..m_int loop
-- to do ......
end loop ;
end ;