English Grammar and
Examples
Idioms
Jargon
Body language
MYSQL
Example of Binlog MYSQL Statement
Example of Create Server MYSQL Statement
Example of Cursor Close MYSQL Statement
Example of Cursor Fetch MYSQL Statement
Example of Cursor Open MYSQL Statement
Example of Declare Cursor For MYSQL Statement
Example of Load XML MYSQL Statement
Example of Show Create Trigger MYSQL Statement
Example of Show Relaylog Events MYSQL Statement
Example of Truncate Table MYSQL Statement
Example of Handler MYSQL Statement
Example of Loop MYSQL Statement
Example of Resignal MYSQL Statement
Example of Return MYSQL Statement
Example of Signal MYSQL Statement
Show Function Status
Show Index
Show Master Status
Show Privileges
Show Procedure Code
Show Procedure Status
Show Privileges
Show Profile
Show Profiles
Show Slave Status
Show Status
Show Triggers
Show Variables
Show Function Code
Call
Drop Function
Insert
Install Plugin
Load data infile
Replace

Full list of MYSQL
   Business Letters   Personal Letters   Resumes   CVs and more
       Facebook Example of If Mysql statement LINKED IN Example of If Mysql statement del-icio-us Example of If Mysql statement

Example of If Mysql statement:

CREATE FUNCTION SimpleCompare(n INT, m INT)
RETURNS VARCHAR(20)
BEGIN
DECLARE s VARCHAR(20);
IF n > m THEN SET s = '>';
ELSEIF n = m THEN SET s = '=';
ELSE SET s = '<';
END IF;
SET s = CONCAT(n, ' ', s, ' ', m);
RETURN s;

CREATE FUNCTION VerboseCompare (n INT, m INT)
RETURNS VARCHAR(50)
BEGIN
DECLARE s VARCHAR(50);
IF n = m THEN SET s = 'equals';
ELSE
IF n > m THEN SET s = 'greater';
ELSE SET s = 'less';
END IF;
SET s = CONCAT('is ', s, ' than');
END IF;
SET s = CONCAT(n, ' ', s, ' ', m, '.');
RETURN s;

Example of Mysql If

IF search_condition THEN statement_list
[ELSEIF search_condition THENstatement_list] ...
[ELSE statement_list]
END IF
         


Link to this page:
* Required Fields
 Add Comment:
Name* :
Email :
Comment* :
 
Contact Us About Us Privacy Policy Disclaimer
Copyright © 2008 - 2011 ExamplesOf .com