Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle boolean to varchar

CREATE OR REPLACE FUNCTION BOOLEAN_TO_CHAR(STATUS IN BOOLEAN)
RETURN VARCHAR2 IS
BEGIN
  RETURN
   CASE STATUS
     WHEN TRUE THEN 'TRUE'
     WHEN FALSE THEN 'FALSE'
     ELSE 'NULL'
   END;
END;
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle cast boolean to varchar2 
Sql :: trunc sysdate in oracle 
Sql :: postgres insert into table 
Sql :: windows aggregate functions in postgresql 
Sql :: sql server obtener nombre sin espacios en blanco 
Sql :: many to many flask-sqlalchemy 
Sql :: sql order 
Sql :: sql server whoami 
Sql :: how to login to mysql in homestead 
Sql :: postgresql get difference in hours between two dates 
Sql :: mysql pass command from command line 
Sql :: export database with data sql server 
Sql :: sql insert into select statement 
Sql :: index postgres 
Sql :: postgresql like 
Sql :: sql where multiple values 
Sql :: sql select inside select sub query 
Sql :: drop procedure postgres 
Sql :: install pymysql in python 3 in windows 7 v2.7.10 codes with pip 
Sql :: postgres advance auto increment 
Sql :: Can you Join two Tables With Common Column? 
Sql :: sqlite get columns for table 
Sql :: snowflake insert select 
Sql :: mysql privileges 
Sql :: import mysql db 
Sql :: what is 1=2 in sql 
Sql :: how to add multiple column in mysql 
Sql :: postgresql multiple insert with subquery 
Sql :: merge in sql 
Sql :: enable mysql query log 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =