Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle cast boolean to varchar2

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 :: case vhdl 
Sql :: stored procedure data to table 
Sql :: round border button tkinter 
Sql :: oracle sql all days except weekends 
Sql :: Unable to locate package libmysql-java 
Sql :: remove decimal in sql server 
Sql :: order by with where clause in mysql 
Sql :: insert query in oracle 
Sql :: tsql from yyyymm to date 
Sql :: mysql update multiple columns 
Sql :: check if user defined table type exists in sql server 
Sql :: last date for each user sql 
Sql :: join vs inner join 
Sql :: mysql even numbers 
Sql :: keys in sql with example 
Sql :: mysql group rows with same value 
Sql :: mariadb used space 
Sql :: find current server name for SSMS 
Sql :: mysql workbench view 
Sql :: WHERE value IS sql 
Sql :: how to select only a certain date sql 
Sql :: sql is null and is not null 
Sql :: inserting values in sql 
Sql :: oracle kill sessions script 
Sql :: column must appear in the GROUP BY clause or be used in an aggregate function 
Sql :: sql division operator 
Sql :: sql update from one table to another based on a id match 
Sql :: add column mysql 
Sql :: mac mysql this is incompatible with sql_mode=only_full_group_by 
Sql :: SQL Delete and Truncate Rows 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =