• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic