Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in MySQL only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
MySQL
remove rows that do not contain
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
TVining
New Member
Join Date:
Dec 2007
Posts:
26
#1
remove rows that do not contain
Jan 21 '08, 03:11 PM
I want to remove all rows that do not contain the word "FRENCHFRY" in them.
I have tried a few things, with varied results, but nothing consistent.
Tony
mwasif
Recognized Expert
Contributor
Join Date:
Jul 2006
Posts:
802
#2
Jan 21 '08, 04:01 PM
You can write your query as
[CODE=mysql]DELETE FROM table_name WHERE column1 NOT LIKE '%FRENCHFRY%'[/CODE]
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment