Inserting Values Assignment Help

Assignment Help: >> Collection Object types - Inserting Values

Inserting Values:

Each object type has a system-defined constructor method, which is, a method that makes a new object according to the object type's specification. A name of the constructor method is the name of the object type. A constructor method is a function. Method returns the new object as its value. This is used to initialize the attributes with values.

Example

Data are inserted into the table EMPLOYEE_data by using CONSTRUCTOR METHOD

INSERT INTO employee _data VALUES ( 101, user_name (' Ramesh ', ' Sachin','Tendulkar'

) , user_date(04,05,98),10000)) ;

The possible queries which can be performed are:

For retrieve all the records from the table

SELECT         * FROM employee_data;      

SELECT         e.ename.fname, e.ename.lname           FROM employee_data e;

SELECT e.empno, e.dob.day FROM employee_data e;

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd