• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

what is the length of the Date?

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I'm confused with the following query result, could anybody explain the reason, why vsize(sysdate) return 8, vsize(hiredate) return 7?
I know that vsize(expr) defined as "Returns the number of bytes in the internal representation of expr", but sysdate have one more byte than date type column defined in table.
select sysdate, vsize(sysdate) from dual;
sysdate vsize(sysdate)
22-AUG-02 8
select hiredate, vsize(hiredate) from emp;
sysdate vsize(sysdate)
22-AUG-02 7
[ August 22, 2002: Message edited by: Lipman Li ]
 
Lipman Li
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know the reason already, sysdate is function, hiredate is a column.
cheers
reply
    Bookmark Topic Watch Topic
  • New Topic