| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#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
|
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 |
|
|
|
|
|
#2 (permalink) |
|
Senior Member
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
|
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. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |