Just out of curiosity, have you read the PL/SQL User's Guide and Reference? I couldn't tell from your post which version of Oracle you are using, so I am assuming the latest version. Here is a link to the online version: http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/toc.htm Hope this helps. Good Luck, Avi.