Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are % TYPE and % ROWTYPE ? What are the advantages of
using these over datatypes?

Answers were Sorted based on User's Feedback



What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?..

Answer / swapna

"% Type "is used to extract definition of the column of a
table.

"%Rowtype" is used to extract definition of the columns of
all columns.

Is This Answer Correct ?    6 Yes 1 No

What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?..

Answer / nakul.v

%TYPE provides the data type of a variable or a database
column to that variable.

%ROWTYPE provides the record type that represents a entire
row of a table or view or columns selected in the cursor.

The advantages are :
I. Need not know about variable's data type.
II.If the database definition of a column in a table
changes, the data type of a variable changes accordingly.

Is This Answer Correct ?    4 Yes 0 No

What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?..

Answer / nishi

%TYPE provides the data type of a variable or a database column to that variable.

%ROWTYPE provides the record type that represents a entire row of a table or view or columns selected in the cursor.

The advantages are :

I. Need not know about variable's data type.

II.If the database definition of a column in a table changes, the data type of a variable changes accordingly.

Is This Answer Correct ?    1 Yes 0 No

What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?..

Answer / manoj

"%Type" :-It reffer one datatype which take
data type of a column in table,
Previously defined variable(Anchor type)

"%Rowtype" :-Have all type Refered May be for
Table,
Cursor,
Ref Cursor,
curor variable etc.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More SQL PLSQL Interview Questions

Is left join same as join?

0 Answers  


How many types of tables are there?

0 Answers  


Explain 3 basic parts of a trigger.

0 Answers  


Is nosql faster than sql?

0 Answers  


Is sql port 1433 encrypted?

0 Answers  


I have a table .in the table 100 recored is there .we have get the single row with out using clause..

3 Answers  


what are the different types of joins?

4 Answers   Choice Solutions,


If I have a table T with 4 rows & 2 columns A & B. A has values 1,2,3,4. and B has 10,20,30,40. Write an Update SQL query which can Swap the values of A & B for all records. (Do not use a sub-query)

5 Answers  


What is rank dense_rank and partition in sql?

0 Answers  


what is the difference between binary_integer and pls_integer

2 Answers   TCS,


Why do we use subquery?

0 Answers  


If records are inserted into table without committing.How to refer to these values in a procedure?

2 Answers  


Categories