VARCHAR field memory storage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robintwos
    New Member
    • Nov 2007
    • 24

    VARCHAR field memory storage

    A field declared as VARCHAR(10) , how many bytes of data it can occupy ?
    and
    can i move a field which is declared as VARCHAR(10) to CHAR(10).?
  • nearestniladri
    New Member
    • Nov 2007
    • 5

    #2
    Originally posted by robintwos
    A field declared as VARCHAR(10) , how many bytes of data it can occupy ?
    and
    can i move a field which is declared as VARCHAR(10) to CHAR(10).?

    Hello,
    You cannot change varchar to character. Because this kind of conversion is not supported by DB2. As all this memory conversion functions are not allowed in DB2 storage.

    Comment

    • db2doubts
      New Member
      • Dec 2007
      • 3

      #3
      Hello,

      VARCHAR field memory storage depends on entering the text in this field
      e.g if you enter 5 charaters then DB2 allot for 5 bytes only but coming to CHAR datatype DB2 allot 10 bytes either u enter or not

      Comment

      Working...