Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Posts
    272

    Unanswered: length of the blob coloumn

    Environment DB2 V10.5 on AIX - single partitioned.


    There is a blob coloumn in one of our table in the db2 database. Coloumn name is pzstream

    How do we determine the number of characters in the coloumn and number of bytes.

    I understand that there is a function length(columnname). I am not sure what it determines ? Does it determine the number of bytes of the column OR number of characters in the column ?

    Is there a function for each ? number of characters and number of bytes ??

    There is also another function dbms_lob.getlength(coloumnname) -> can I know how is this different to length(coloumnname)


    Thanks in advance for the help

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    in length and substring by default it is byte based - you can specify character based to avoid cutting a character in 2 parts
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •