求一个ORACLE函数列出所有的月份,急! 想列出如下的记录,该如何做index month1 012 023 034 045 056 067 078 089 0910 1011 1112 12怎么实现,急 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 原先表里只有各一个productID,对于每个productID想等到像这样的一个结果productID index month 12345 1 01 12345 2 02 12345 3 03 12345 4 04 12345 5 05 12345 6 06 12345 7 07 12345 8 08 12345 9 09 12345 10 10 12345 11 11 12345 12 12 急,请帮忙 select distinct substr(to_char(日期字段,'YYYYMM'),5,2) mmfrom tb select productid, rn index, lpad(rn, '0', 2) month from products, (select rownum rn from user_tab_cols where rownum<=12) SELECT DISTINCT INDEX,MONTH FROM yourtable select lpad(level,2,0) month from dual connect by level<13 select lpad(level,2,0) month from dual connect by level<13 求oracle的分析[监听]工具,在线等 select 查询中判断字符串格式 oracle建表时能将几个字段建成一个联合项目吗? 怎样将字段中存的字符串拼接成特定格式的字符串 如果经常使用以下sql语句。索引应该怎么建呢? 批处理中的日期函数问题 关于ORACLE INDEX的问题,高手请进! 请教数据恢复问题???在线等待 用Java从Oracle取数据的问题 在线求助:程序在oracle8i能运行,在oracle9i中出现“ORA-00972:标识过长”错误 请教 oracle 查询问题 查询不确定列 要不要管系统数据
12345 1 01
12345 2 02
12345 3 03
12345 4 04
12345 5 05
12345 6 06
12345 7 07
12345 8 08
12345 9 09
12345 10 10
12345 11 11
12345 12 12 急,请帮忙
from tb
select productid, rn index, lpad(rn, '0', 2) month from products, (
select rownum rn from user_tab_cols where rownum<=12)
select lpad(level,2,0) month from dual
connect by level<13
select lpad(level,2,0) month from dual
connect by level<13