`

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'
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics