Answer Posted / avi007
We can create a user defind datatype by using abtract
datatype.
create type address_type as object
( street varchar2(10),
pincode number(6);
);
This is used in
create table emp
(Empname varchar2(20),
Adress address_type);
// address_type is user defined datatype
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Can a varchar be a primary key?
What are variables in pl sql?
Why do we use sql constraints? Which constraints we can use while creating database in sql?
How do you write a complex sql query?
What has stored procedures in sql and how we can use it?
What is the difference between nvl function, ifnull function, and isnull function?
what is the difference between cluster and non cluster index? : Sql dba
Is sql scripting language?
What is sap sql anywhere?
Is left join inner or outer?
What types of commands can be executed in sql*plus?
What is database sql?
What is sqlcommand?
Can procedure in package be overloaded?
What are the three pl sql block types?