How to get column information from db logs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ruslan
    New Member
    • Jul 2010
    • 2

    How to get column information from db logs

    I made updating of one field and got log record appropriate to the updating. I have pre-image and after-image data in my log but I need columns type of updated field. how can I figure it out from log?
  • kleach
    New Member
    • Jun 2010
    • 15

    #2
    You can get column type information from the system catalogs. Columns typename, length and scale are most useful.

    Code:
    select * from syscat.columns where tabschema='YOURSCHEMA' and tabname='YOURTABLE' and COLNAME='YOURCOLUMN';

    Comment

    • Ruslan
      New Member
      • Jul 2010
      • 2

      #3
      Thanks! That is what I`ve already done.

      Comment

      Working...