mysql - Find strings within text in SQL -


i have table string column "word" , rather large text. want find words appear within text. imho need reverse operator. ist possible in plain sql (no stored procedures)?

example: finding words in rhymes

| id | word | | 1  | star | | 2  | moon | | 3  | sun  | | 4  | sky  | 

text: twinkle, twinkle, little star, how wonder are! above world high, diamond in sky.

==> should find id 1: start, 4: sky

try this:

select id tablename 'twinkle, twinkle, little star, how wonder are! above world high, diamond in sky.' concat('%', word, '%'); 

sql fiddle demo


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -