MySQL strcmp() Function String Value Example
Open your MySQL Query Editor then copy & paste the below code to get the value of strcmp() MySQL Function String Value Example:
-- mysql strcmp() function compares exactly two values, String Value Example
select strcmp('test', 'testtt'), strcmp('test', 'test'), strcmp('test', NULL), strcmp(NULL, 'test');
-- The mysql strcmp() function returns 0 if equals
-- mysql strcmp() function returns -1 if is smaller than
-- The mysql strcmp() function returns 1 if larger than
-- OR if the comparison returns a NULL
-- mysql strcmp() function returns NULL if or is NULL
-- is comment in MySQL -- in fact it is comment in MSSQL and Oracle as well
MySQL strcmp() Function String Value Example - Result in MySQL Query Editor
Related Tutorial Examples
- MySQL isnull() Function Example
- MySQL strcmp() Function NULL Value Example
- MySQL interval() Function Example
- MySQL coalesce() Function Example
- MySQL IF() Function Boolean Value Example
- MySQL Stored Procedure: Variable Example
- Creating Database(s) using SQL Command MySQL Example
- PHP HTML Form select box Example
- 20 steps to make CakePHP Blog Project
- PERL Example: Hellow world! program in PERL

No comments:
Post a Comment
leave your comments here..