Matches SQL syntax help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shaun Campbell

    #1

    Matches SQL syntax help

    Can somebody please tell me what the mysql equivalent syntax is to the
    Informix statement

    where the_field MATCHES "[ABC]"

    where the_field is a single character field with values of A, B, C, D or E
    and I just want all records with values of A or B or C.

    I've tried REGEXP or IN ('A','B','C') but can't get it to work.

    Any help would be appreciated.

    Shaun



Working...