473,395 Members | 1,454 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,395 software developers and data experts.

DB2 ALTER date

1
How do you find the date of when a column was add to a table with alter (DB2 V8.2 UDB)
Feb 29 '08 #1
1 1812
docdiesel
297 Expert 100+
Hi,

somebody changed the table and nobody knows when this happened? Try this SQL statement:

Expand|Select|Wrap|Line Numbers
  1. select
  2.   DTD_IDENTIFIER
  3. from
  4.   sysibm.columns
  5. where
  6.   COLUMN_NAME='DATE'
  7. and
  8.   table_name='MYTABLE'
  9. and
  10.   table_schema='MYSCHEMA'
and replace MYTABLE/MYSCHEMA with the right values. You should get a result like this:

Expand|Select|Wrap|Line Numbers
  1. DTD_IDENTIFIER
  2. -----------------------
  3. C200708211006367785850000MYTABLE
The first numbers represent date & time of creation.

Regards,

Bernd
Feb 29 '08 #2

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

Similar topics

1
by: FRED | last post by:
hi all, i have a table that has a column date varchar(20) and now i learned some more about mysql I want to make it date date but if I do an alter table on it what will it do to my existing data...
1
by: Geoff Jones | last post by:
Hi I have a table that contains date/time together in one field. Is it possible to ALTER the table so that this field now only contains the time (or date)? Thanks in advance Geoff P.S....
3
by: M Simpson | last post by:
/* for the google index */ ALTER TABLE DEFAULT COLUMN DEFAULT VALUE I've worked out several stored procedures for altering the default column values in a table. They were compiled from books...
2
by: me | last post by:
I would like to add an Identity to an existing column in a table using a stored procedure then add records to the table and then remove the identity after the records have been added or something...
5
by: Mike L | last post by:
Hello all I'm trying to migrate a BE from Access to SQL Server. I've been making changes to the Access BE from the FE with SQL statements, and want to do the same with the BE in SQL Server. ...
3
by: bloc | last post by:
I am programming an interactive CV using xml, xslt and java script. The page consists of a header which contains links to various 'sections' on the xml cv, a left and right menu, and a central...
0
by: aspatsli | last post by:
Hi I am using oracle 9.2.0.1 in windows XP. When I try to alter a co-dependent type I get an error as follows. Please look at the script and help me to solve it. Thanks
1
by: cmartin1986 | last post by:
Hi, I am trying to write code to change my table data types. what i have so far is: currentdb.execute "alter table getdates alter column Line Unit 0001 date" If I leave it at that it...
2
by: semaj.remle 'at' gmail | last post by:
For files saved in source control, is it better to use code to DROP/ CREATE a procedure like this: ------------------------------------------------------------------ IF OBJECT_ID ('procName') IS...
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: 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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.