I have a table in my oracle database with several columns for representing an address fields like: city, street, state... now i want to use an Address UDT created like this:
CREATE TYPE ADDRESS AS OBJECT
(
state NUMBER(6),
street CHAR(50),
city CHAR(50),
)
How can i move and convert old columns to this new object in a new column?
VARCHAR2
rather thanCHAR
for the data types, unless you explicitly want to waste space on trailing spaces. – Gordon Linoff