simple query

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

    #1

    simple query


    Imagine i have a table "phrases" with a field "ph" with contents like these:

    - who was it
    - who wasnt it
    - no i didnt
    - yes i was
    - dont know who

    I want to make a SELECT that gives me only the entries that have the word
    "who":

    Something like

    SELECT * FROM `phrases` WHERE ph="who*";

    I tried the manual but cant make sense of it. How can we use wildcards on
    selects?

    Thanks

    Pag



    --
    MySQL General Mailing List
    For list archives: http://lists.mysql.com/mysql
    To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw

Working...