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 |
need to split a string into separate values. eg. col1 col2 ---------- 100 - 'a,b,c' 200 - 'a,x,d,e' 300 - 'c' result: value count ------------- a - 2 b - 1 c - 2 etc.
How to use distinct and count in sql query? Explain
What is primary key secondary key alternate key candidate key?
How to know the last executed procedure?
using subquery how can i calculate working days in a month?
What is offset and limit in sql?
what is meant by nl2br()? : Sql dba
How can you load multi line records? : aql loader
What are the indexing methods?
Can I call a procedure inside a function?
What is a sql profiler?
what is oracle database ? : Sql dba
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)