• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

diff between SPROC,UFD,PL/SQL

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI GUYS

what is the diffence between stored procedure ,user defined function

and PL/SQL

LOOING FOR YOUR REPLIES
[ March 24, 2008: Message edited by: Amirtharaj Chinnaraj ]
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pl / SQl is a programming script - language that is used by the Oracle database.

A user defined function is similiar to a java method in that it can have zero or more parameters input and must return a value. They can be used in sql statements once defined. You useally see them written in Pl/sql but can be written in java.

A stored procedure can have zero or more parameters that are input or output from the procedure. The stored procedure resides on the DB server to allow faster data access. Useally written in PL/SQl .

This is a simplistic summary but hopefully give you an idea.
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Amirtharaj,
Please watch the caps. It's often perceived as shouting; certainly not your intent.

PL/SQL is a language while stored procedures and user defined functions are concepts. For that later two, the difference is how they are called. A function is called just like the built in functions (sum(), count(), etc) - as a function within a query. A procedure is called on it's own.
 
Jeanne Boyarsky
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agador: You beat me by a few seconds! It's nice that the original poster gets two wordings of the answer though.
 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you guys
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic