473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to get column information from db logs

2
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?
Jul 6 '10 #1

✓ answered by kleach

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

Expand|Select|Wrap|Line Numbers
  1. select * from syscat.columns where tabschema='YOURSCHEMA' and tabname='YOURTABLE' and COLNAME='YOURCOLUMN';

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

Expand|Select|Wrap|Line Numbers
  1. select * from syscat.columns where tabschema='YOURSCHEMA' and tabname='YOURTABLE' and COLNAME='YOURCOLUMN';
Jul 13 '10 #2
Ruslan
2
Thanks! That is what I`ve already done.
Jul 14 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Shenc | last post by:
I am using the CommandBuilder to auto-build the insert/update/delete commands. My select command is very simple like "Select * From MyTable". where MyTable is a synonym created for a real table...
5
by: Leonardo Almeida | last post by:
This is the case.... I would like to learn the statement that make the relation between these tables. Why? Cos these are separated in two different databases and if a user make an update in a...
1
by: Leonardo Almeida | last post by:
This is the case.... I would like to learn the statement that make the relation between these tables. Why? Cos these are separated in two different databases and if a user make an update in a...
0
by: Sean | last post by:
I received this error when a trigger attempted to perform an update to its own table with a where clause that did not guarantee a single row. I believe this results in the iterative firing of this...
4
by: Scot L. Harris | last post by:
Currently using Postgresql 7.2.4-5.80 with php 4.2.2.-8.0.8 on a redhat 8.0 system. I am writing some php scripts where I want to generate a list of the column names in a particular table that...
1
by: dinu | last post by:
Dear Friends, I have table contain 2000 out of those some are duplicate when i select duplicate records by using Enterprise Manager and make modification to one of those duplicate records the...
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
2
by: Lcook1974 | last post by:
Hi, I am working with an Access report and I am trying to move Data that is listed as a column into a row format. Ex: Existing Column Name: Organ: Joe Doe Heart Joe Doe ...
1
by: goldtech | last post by:
Using Python and OBDC in MS-Access DBs. So, I'm able to run SQL statements from Python on an Access DB. Is there an SQL statement that will give me column information? For a table I want to know...
1
by: manish2007 | last post by:
I have edit sql server 2000 table record by vb or direct enterprise mangafer and i have recived one message "Key column information is insufficient or incorrect. Too many rows were affected by...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.