<< previous page   --   table of contents   --   next page >>
| | | | | | | |
  • Return to Table of Contents
  • Table of Contents

    1. General Information
    2. MySQL Installation
    3. Tutorial Introduction
    4. Database Administration
    5. MySQL Optimisation
    6. MySQL Language Reference
    7. MySQL Table Types
    8. MySQL APIs
    9. Extending MySQL

    422 MySQL Technical Reference for Version 4.0.3 page  771.   Returns  1  if  expr  matches  pat,  otherwise  returns  0.   RLIKE  is  a synonym for REGEXP, provided for mSQL compatibility.  Note:  Because MySQL uses the C escape syntax in strings (for example, `\n'), you must double any `\' that you use in your REGEXP strings.  As of MySQL Version 3.23.4, REGEXP is case-insensitive for normal (not binary) strings: mysql> SELECT 'Monty!' REGEXP 'm%y%%'; -> 0 mysql> SELECT 'Monty!' REGEXP '.*'; -> 1 mysql> SELECT 'new*\n*line' REGEXP 'new\\*.\\*line'; -> 1 mysql> SELECT "a" REGEXP "A", "a" REGEXP BINARY "A"; -> 1   0 mysql> SELECT "a" REGEXP "^[a-d]"; -> 1 REGEXP and RLIKE use the current character set (ISO-8859-1 Latin1 by default) when deciding the type of a character. expr NOT REGEXP pat expr NOT RLIKE pat Same as NOT (expr REGEXP pat). STRCMP(expr1,expr2) STRCMP() returns 0 if the strings are the same, -1 if the rst argument is smaller than the second according to the current sort order, and 1 otherwise: mysql> SELECT STRCMP('text', 'text2'); -> -1 mysql> SELECT STRCMP('text2', 'text'); -> 1 mysql> SELECT STRCMP('text', 'text'); -> 0 MATCH (col1,col2,...) AGAINST (expr) MATCH (col1,col2,...) AGAINST (expr IN BOOLEAN MODE) MATCH ... AGAINST()  is used for full-text search and returns relevance - sim- ilarity measure between the text in columns (col1,col2,...) and the query expr.  Relevance is a positive oating-point number.  Zero relevance means no similarity.  MATCH ... AGAINST() is available in MySQL version 3.23.23 or later. IN BOOLEAN MODE  extension was added in version 4.0.1.  For details and usage examples, see Section 6.8 [Fulltext Search], page 485. 6.3.2.2  Case-Sensitivity BINARY The BINARY operator casts the string following it to a binary string.  This is an easy way to force a column comparison to be case-sensitive even if the column isn't de ned as BINARY or BLOB:
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN REGISTRATION
    MANAGE YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    SITE MAP
    Home
    Hosting Plans | Domain Registration | About Us | Contact Us | Site Map
    Terms of Use | Privacy Policy | Guarantees
    Merchant Accounts

    SpiritHost - web hosting for spiritual and education sites
    SpiritHit.com - Religious and Spiritual Portal
  • Return to Table of Contents
  • Back to top

  • Web Hosting: Manuals & FAQ's

    1. Unix-Based Web Hosting
    2. Unix Dedicated Servers
    3. Windows Dedicated Servers
    4. CuteFTP User’s Guide
    5. CuteHTML User’s Guide
    6. WS_FTP Pro User's Guide
    7. Miva Order User's Guide
    8. Miva Merchant User's Guide