sql - Oracle sort substitution variables -


I need to sort the replacement variable, so I can refer to it later: < Pre> with Wars (select sort (var1 ,: var2 ,: var3) from double) at least _wire, big_use, great_wars; Since your replacement variable has been, you definitely have some host languages. Therefore, there is a way to order three values ​​in the host language before calling a SQL query.

Another way is to use the following questions (in combination with the combination in combination):

  at least (: var1 ,: var2 ,: var3) Select at least_Wire, case when: var2 & lt; : Var1 and: var1 & lt; : Var3 or: var2 & gt; : Var1 and: var1 & gt; : Var3 then: var1 when: var1 & lt; : Var2 and: var2 & lt; : Var3 or: var1 & gt; : Var2 and: var2 & gt; : Var3 then: var2 second: var3 eventually create a sort function as big_var, the largest form of greater_var than the largest (: var1,: var2,: var3) double   

as You will propose will not actually work as a function that acts as three pillars that can not back a build if you want to use the function, then use three of them: the built-in function at least And the biggest as well as the All user-defined one called Greater.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -