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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With