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
What is the difference between microsoft sql and mysql?
When can we use the where clause and the having clause?
What are the string functions in sql?
Explain the difference between rename and alias?
What is the use of prepared statement?
What can you do with pl sql?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
Can sql developer connect to db2?
Is big data nosql?
How can we implement rollback or commit statement in a trigger?
Does truncate table reset auto increment?
What is string join?
How to rename a column in the output of sql query?
How will you distinguish a global variable with a local variable in pl/sql?
What does inner join mean?