Quote:
|
Originally Posted by jsharon1248
run the following:
describe select * from clmerret
This will tell you the type for the clmerrcrt column. If it is a timestamp, try '2000-06-14-00.00.00.000000'. If it's a date, try just the first 10 characters. Be careful with the '-' and '.' characters. DB2 is very particular about them.
|
1) How can I change the type of a column?
I use QMF for Windows, and when you run the query it shows under the
records some boxes (one per field) with the name of the field written on each
box. If you click on one box, you can change the format
but (it seems to me) only within a limited range of types, that are: as is, decimal, ...and others. For example I don't find the type
'date'. Does it exist?
When I change the type, the field appears changed, but the box still
declare the original type: for example I changed decimal with six ciphres after
the comma into 0 decimal, but the box continues showing data type decimal
with 10 ciphres.
Is there another way to change data type?
2) With
forms you can instruct query to group records, make the sum in a column of a group of records, and so on.
Can I give these instructions directly in the query without having to repeat
each instruction in the form each time I run the query?
Thank you.
Anna - Verona (Italy)
