Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Do you use PL/SQL

Re: Do you use PL/SQL

From: Mladen Gogala <mgogala.SPAM_ME.NOT_at_verizon.net>
Date: Mon, 21 May 2007 13:41:40 GMT
Message-ID: <pan.2007.05.21.13.41.40@verizon.net>


On Sat, 19 May 2007 20:02:52 -0700, Doug Davis wrote:

> 1. Why use PL/SQL instead of just sending SQL queries from a program
> written in a procedural language on the client side (Java, Visual Basic,
> C++, anything.)

Because it is simpler and more optimal to do database things within the database. For any communication between the client and the server process, one needs network communication while PL/SQL is executed within the database. There are things that are hard to do with PL/SQL. Processing an input file or formatting your output is much harder with PL/SQL then with C++, Java or my personal favorites, Perl and PHP. For programming GUI you need the external programming language. However, it is a good thing to do all things database in the database because you save yourself significant amount of time for the network communication.

-- 
http://www.mladen-gogala.com
Received on Mon May 21 2007 - 08:41:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US