select *
from table_name
where upper(to_char(a,'rm')) = 'I'

解决方案 »

  1.   

    select * from table_name where translate(a,'123','I II III')
      

  2.   

    To: phant0m(YO-YO)
    不可以啊!!
     'I II III' 不是罗马数字.'Ⅰ,Ⅱ,Ⅲ,Ⅳ,Ⅴ,...'
    是罗马数字!
      

  3.   

    1 Ⅰ
    2 Ⅱ
    3 Ⅲ
    4 Ⅳ
    5 Ⅴ类型分别为: number(2,0) ,varchar2(20)
    比如:
    根据:'Ⅲ' 查询出 3
    就这么简单!
      

  4.   

    817里面没问题
    SQL> select num from test where col='Ⅲ';NUM
    ---
      3
      

  5.   

    这样呢?
    select * from table_name where a=upper(to_char(1,'rm'));