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 get max per id 
Sql :: carbon mysql d m y to y-m-d 
Sql :: SQL Server Splitting a string column into multiple rows, while repeating ID column 
Sql :: faire la différence entre deux tables sql big query 
Sql :: ORACLE CALL BACK TRACE 
Sql :: connect to mysql server mac terminal 
Sql :: sql get actual fiscal year 
Sql :: mysql workbench download 
Sql :: SQL DATEDIFF(date_part, start_date, end_date) 
Sql :: mysql grouping functions 
Sql :: postgresql isnull with max 
Sql :: retrieve all data from a one row in mysql 
Sql :: postgres show table schema 
Sql :: dns slave zone convert 
Sql :: mysql get table column names and data types 
Sql :: mysql pass command from command line 
Sql :: sqlcmd list tables 
Sql :: oracle synonym procedure 
Sql :: sql select where id not exists in another table 
Sql :: sql merge statement 
Sql :: oracle sql get value from several rows and concatenate strings 
Sql :: create a table from one field of another table 
Sql :: systems sql 
Sql :: how to reset the identity column in sql server 
Sql :: mysql copy data from one table to another 
Sql :: Remove duplicate old value in mysql 
Sql :: HAS VALUE CHECK IN SQL 
Sql :: sql insert 
Sql :: mysql null 
Sql :: desc sql 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =