0

i'm having a problem with malformed html syntax in my database (eg. & instead of &) - is there a way to run a sql query which will search in all textfields?

thanks

2
  • 3
    try to search solution before asking. Commented Apr 11, 2011 at 9:45
  • maybe u misunderstood my question - i'm trying to query ALL database fields which contain & not just single fields .. Commented Apr 11, 2011 at 10:00

1 Answer 1

1

There's no query syntax more sophisticated than the obvious: searching one column at a time with LIKE.

If your db is not yet very large you could try dumping it out. Then use a text editor to search the resulting dump file. You may also be able to correct the mistakes with your text editor, and then reload the dumped tables.

But be careful! It may be desirable to store entitized chararacters ( ≤ > & etc ) instead of their raw text counterparts in your tables.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.