User-defined Data Type

Write an SQL statement to create user-defined data types?

Questions by shameem_chandu

Showing Answers 1 - 2 of 2 Answers

jpundalik

  • Dec 28th, 2009
 

Below is the syntax can be used for creating user defined data type in Oracle

create or replace type type_name as object
(
add fields and types..
)

Example:
create or replace type address as object
(addr1 varchar2(100),
City varchar2(30),
phone varchar2(15)
);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions