sql - Ignore rows which contain a hyphen in MySQL -


i have table so

words   | count hello   | 2 bye     | 1 good-bye| 2 

how can remove/ignore rows containing hyphens (i think using regex)? output is

hello   | 2 bye     | 1 

the simpliest solution use like

select *   tablename  words not '%-%' 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -