Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between object and record type

Tags:

oracle

I am just curious whats the difference between object and record type in oracle, More specifically between the below declarations

create type emp2_oty is object  (  empno  number,  ename  varchar2(20),  deptno number );  create type emp2_nt is table of emp2_oty; 

and

type emp2_oty is record (  empno  number,  ename  varchar2(20),  deptno number );  create type emp2_nt is table of emp2_oty; 

Please elaborate.

like image 399
redsoxlost Avatar asked Jun 01 '12 10:06

redsoxlost


People also ask

What is difference between record and object?

Object holds the entire schema (structure) of the data. Record: Its nothing but one row in that table. Records are the rows(entries) in object which are uniquely identified by there ids.

Is record type an object in Salesforce?

Record Type Object Salesforce plays a key role in the implementation of Business Process Workflows. Salesforce Record Type offers a way to customize objects for different use cases.

What is a record type?

A record type is the format for a particular type of change request. It is roughly analogous to a table in a relational database. Each record type defines the data that can be collected for one type of change request.

How many record types can an object have in Salesforce?

We recommend creating no more than 200 record types. While there is no limit, orgs may have difficulty managing their record types if they exceed 200.


1 Answers

  • record:

       Cannot be stored in the database.    Cannot be recursively referenced.    Cannot have logic defined as part of their definition. 
  • object:

       Can be stored as a database table column or as an entire row.    Can be recursively referenced using the SELF parameter.    Can have logic defined as part of their definition using member methods. 
like image 143
venu Avatar answered Oct 14 '22 05:10

venu