Oracle:求教 关于 char 类型的 查询问题,谢谢!

create table AAA
(
  STARTNUM      CHAR(23) not null,
  ENDNUM        CHAR(23) not null,

)

AAA 表中有一天记录,值如下:
    STARTNUM 值为  424025550000000  
    ENDNUM  值为  424025550199999

//----求教 为什么下面的 sql 语句 可以查到记录?
select t.startnum,t.endnum from AAA  t
where t.startnum <= '424025550000046x' and t.endnum >= '424025550000046x'

猜你喜欢

转载自sunruing.iteye.com/blog/1496992
今日推荐