How should you do your stored procedures? Should they be considered a βone-hitβ or mirror of more general use? Consider the following cases:
1.
FindUser (username, ...)
The stored procedure returns the user ID to the caller
FindItem (itemname, ...)
The save procedure returns the identifier of the item to the caller
AddOrder (userid, itemid, ...)
The returned identifiers can then be passed to the third stored procedure.
2.
Here, identifiers are searched inside the stored procedure
Is there a preferred / recommended way? Thanks for your thoughts.
, / , . , , , , , .
: " procs ?", , .
, , , . , : " ?"
, db- , ( ), , . , .
" ", .
, "" , , , procs. , .. , db , .
, "-", , .
, - , .
sp, , . , .
, sps (, ) (, userid) , , , MANY sps.
sps, / .
oneHit SP, . , .. , , .
, , ...
+1 .
Source: https://habr.com/ru/post/1718254/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1718249/alternatives-to-php-inarray-for-large-arrays-for-avoiding-duplicates-entries&usg=ALkJrhgypDDhOD-CiPRM_geGHq9hIymePgC ++ multiple inheritance and Objective-C. Is this a bug in GCC? - c ++ASP.NET MVC controllers initialize correctly during testing - asp.net-mvcNew sql connection for each request? - multithreadingAdding a Datapoint Table to Excel with VBA - vbag ++ problem: there was no exception - c ++Hows makes window color calculated from ARGB - c #Python ctypes and not enough arguments (4 bytes missing) - pythonHow to override control panel more controller? - iphoneChange address in Django middleware - pythonAll Articles