Use of boolean in PL/SQL

后端 未结 2 1586
眼角桃花
眼角桃花 2020-12-16 19:34

I have a function in PL/SQL which checks if a particular emp_id exists or not which is:

CREATE OR REPLACE FUNCTION checkEmpNo(eno numeric)
RETUR         


        
2条回答
  •  情书的邮戳
    2020-12-16 20:10

    Alternatively you can use the Oracle function diutil.bool_to_int to convert a boolean value to an integer: True -> 1, False -> 0.

    dbms_output.put_line(diutil.bool_to_int(p_your_boolean));
    

提交回复
热议问题