If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > PL/sql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-04, 22:32
sam70 sam70 is offline
Registered User
 
Join Date: Apr 2004
Location: USA
Posts: 14
Exclamation PL/sql

I have problem in creating index on particular column with pL/SQL procedure . I dont know what command to and how to use?
how to run that PL/sql procedure. And howto check that wether index is created or not?
Please guide me
Reply With Quote
  #2 (permalink)  
Old 04-20-04, 03:21
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
Here's the example:

PHP Code:
/* create a procedure */
CREATE OR REPLACE PROCEDURE brisime
AS
   
ci   VARCHAR2 (255);
BEGIN
   ci 
:= 'create index i1 on tob_pool_ocit (pool_id, omm_id)';

   
EXECUTE IMMEDIATE ci;
END;

/* execute the procedure */
BEGIN
   brisime 
();
END;

/* checking whether it is created */
SELECT *
  
FROM user_indexes
 WHERE index_name 
'I1'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On