sql - Oracle: If-else function for non-nulls -



sql - Oracle: If-else function for non-nulls -

this question has reply here:

if-elseif-else 'condition' in oracle sql [duplicate] 3 answers

creating view, i'm trying find equivalent 'if-else' function similar nvl2(). values have coming in guaranteed non-null.

thefunction(is_book == 'y', 'book', 'show')

you utilize decode:

decode(is_book, 'y', 'book', 'show')

sql oracle

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -