Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql if function

IF('expression', 'Result for true',  'result for false')
Comment

if sql

if condition
then 
	statement;
else if condition
then
	statement;
else condition
	statement;
end if;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql alter table order by 
Sql :: mysql select date from datetime 
Sql :: select random sample sql 
Sql :: sql query to find percentage of null values in a table 
Sql :: find number of entries sql 
Sql :: sql server query database space available 
Sql :: mysql dump with table query 
Sql :: creating table in sql 
Sql :: mysql count table rows 
Sql :: show table info mysql 
Sql :: add not null constraint sql server 
Sql :: sql select if two columns are equal 
Sql :: mysql add to value 
Sql :: 2nd max salary query in sql 
Sql :: mysql case when in select 
Sql :: sql power function 
Sql :: insert into without column names 
Sql :: get triggers by query 
Sql :: sql add column with default value 
Sql :: TSQL function split string 
Sql :: location of the log postgresql linux 
Sql :: like in postgresql 
Sql :: restart mysql 
Sql :: sqlite copy table to another table 
Sql :: update sql sintax 
Sql :: postgres find missing indexes 
Sql :: import csv to postgresql 
Sql :: top 3 salary in sql 
Sql :: best sql collation 
Sql :: mysql last friday of current month 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =