how can i create a user defined datatype
Answers were Sorted based on User's Feedback
Answer / mv
we can create a user defined data type by using subtype.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / vetrikumaran
WE CAN CREATE A USER DEFINED DATATYPE BY USING RECORD DATATYPE..
RECORD,INDEX BY TABLE ARE NOT BUT USER DEFINED DATATYPES
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What are the types of views in sql?
How many databases can sql express handle?
What is difference between rank () row_number () and dense_rank () in sql?
how to add a new column to an existing table in mysql? : Sql dba
What are the main features of cursor?
difference between pl/sql table and normal pl/sql table
Describe types of sql statements?
how to shutdown mysql server? : Sql dba
What are all the common sql functions?
how to use like conditions? : Sql dba
What is difference between a PROCEDURE & FUNCTION ?
What jobs use sql?