× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



En easy one-step-change will require all character fields to contain valid dates, often very unlikely.

You can add a date field before the char, convert and copy then delete the char
If conversion fails, you will need to clean your char-dates.

The i is more strict with errors, other systems are more tolerant, and less reliable.


Matt Olson wrote:

Anyone know of a product in DB2 that allows for easier table changing?

If you have a table with a character column that contains dates and I want to change the fields to actual DATE columns it doesn't work using Alter Table.

In Microsoft SQL it is a couple click affair, change column type and hit the save button and it will retain all data. I think it does all these developer efficiency things in the background:


1. Renames table to some temporary name

2. Recreates the table with new data types, fields, etc

3. Copys all the data from the old table to the new table

4. Removes the temporary table

It seems in DB2 in IBM i I lose all these efficiencies?

Anyway to bring this automation back using some tool?

Thanks


-- Este e-mail fue enviado desde el Mail Server del diario ABC Color -- -- Verificado por Anti-Virus Corporativo Symantec --

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.