Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 24-11-06, 02:34 PM   #1 (permalink)
Member
 
Join Date: Nov 2006
Posts: 32
Thanks: 7
Thanked 0 Times in 0 Posts
Thanks: 7
Thanked 0 Times in 0 Posts
Rep Power: 3 sumahals21 is on a distinguished road
Index and Triggers

Hi Friends,

What is Index in Oracle? And What is Trigger in Oracle and in General? Please answer me

Thanks
With Regards
Suma
sumahals21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24-11-06, 06:04 PM   #2 (permalink)
Senior Member
 
jasmine84's Avatar
 
Join Date: Oct 2006
Posts: 426
Thanks: 10
Thanked 29 Times in 25 Posts
Thanks: 10
Thanked 29 Times in 25 Posts
Rep Power: 12 jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light
Re: Index and Triggers

TRIGGER

Oracle allows you to define procedures that are implicitly executed when an INSERT, UPDATE, or DELETE statement is issued against the associated table. These procedures are called database triggers.

Triggers are similar to stored procedures. A trigger can include SQL and PL/SQL statements to execute as a unit and can invoke stored procedures. However, procedures and triggers differ in the way that they are invoked. While a procedure is explicitly executed by a user, application, or trigger, one or more triggers are implicitly fired (executed) by Oracle when a triggering INSERT, UPDATE, or DELETE statement is issued, no matter which user is connected or which application is being used.

INDEX

An index is a performance-tuning method of allowing faster retrieval of records. An index creates an entry for each value that appears in the indexed columns. By default, Oracle creates B-tree indexes.

Create an Index

The syntax for creating a index is:

CREATE [UNIQUE] INDEX index_name
ON table_name (column1, column2, . column_n)
[ COMPUTE STATISTICS ];

UNIQUE indicates that the combination of values in the indexed columns must be unique.

COMPUTE STATISTICS tells Oracle to collect statistics during the creation of the index. The statistics are then used by the optimizer to choose a "plan of execution" when SQL statements are executed.
jasmine84 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
hi..... gomesh_2k6 VB / ASP.NET Technologies 8 07-09-06 01:38 PM
regarding oracle versions Madhuri ORACLE , SQL SERVER , SYBASE & Others 7 07-07-06 07:06 PM


All times are GMT +6.5. The time now is 10:44 AM.





Search Engine Optimization by vBSEO 3.1.0