I am working on what is a rather complicated SELECT query. I have several hierarchical queries nested in a single SELECT, and it is difficult to handle.
I come across several places where my built-in views should be executed in several places, so it seems reasonable to execute them once at the beginning of the stored procedure, and then do some iteration if necessary.
I am wondering if there are any reasons why I should not or could not perform the Oracle Stored Procedure called through my PHP code and return a result set as an OUT parameter. I usually used SP only to do updates / deletes / inserts, but the explicit size and complexity of this request seems to need to be broken.
If there is no technical problem with this, any comments regarding good or bad practice?
Im working on what is a rather complicated SELECT query. I have several hierarchical queries nested in a single SELECT, and it is difficult to handle.
, ? ?
, , , .
- .
, - , Oracle Stored Procedure, PHP-, OUT . - , ?
, , . :
, :
, - . , , php/java/perl/pick your poison, .
,
PHP , , Ref Cusrors. Oracle + PHP Cookbook .
, , , , . , , SQL- , , , "//", .
" ?" , :
, .
, PL/SQL , . , PL/SQL , SQL. : , .
, , , SQL .
, , .
, . SQL- - . , , -, , . . , , , , , .
, SQL , , , , .
, , , , , , "", . .. [Edit: , , , ..]
, . , Oracle.
Source: https://habr.com/ru/post/1732929/More articles:How to create a BlackBerry application for access to low-level equipment? - mobilewhen should i override 1 of the life cycle methods? - flexHow can I make my simple twisted proxy work? - pythonBlack flicker when resizing a transparent Qt widget (only when Aero is on)? - c ++Checking if iframe is ready for writing - javascriptDjango gets a unique clock in a datetime field - djangoLink to fixtures of the same type in Rails - ruby-on-railsSave file dialog - path does not work - c #How to pull changes from svn repositories after switching to mercurial - svnUsing XQuery in SQL Server 2008 to find content - xmlAll Articles