Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where can I find PLSQL samples?

Status
Not open for further replies.

ProgrammingB52

Technical User
May 7, 2003
37
0
0
US
Does anyone have a link for any PLSQL samples that I can run?
 
Sure, B52. What types of programming examples would you like to see? Well try to provide examples similar to your need.

Perhapse the easiest environment from which to run blocks of PL/SQL code is simply SQL*Plus. Here are a couple of examples, including "The World's Shortest PL/SQL Example" and a sample script that shows how to output from a PL/SQL block:
Code:
begin null; end;
/

PL/SQL procedure successfully completed.
(Doesn't success feel good?)

set serveroutput on
begin
    dbms_output.put_line('The current date and time is: '||
        to_char(sysdate,'yyyy-mm-dd "@" hh24:mi:ss'));
end;
/
The current date and time is: 2005-05-11 @ 10:42:06

PL/SQL procedure successfully completed.

So, the above are examples of "working" PL/SQL blocks, but there are some excellent PL/SQL books available, as well.

Let us know more about your need and wants.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)

Do you use Oracle and live or work in Utah, USA?
Then click here to join Utah Oracle Users Group on Tek-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top