tblA
============
fdA | fdB | fdC | fdD
Is there an easy way of searching all the fields in a particular table to see if any of them contain a particular value? I'm trying to avoid having to build a statement like
SELECT * FROM tblA
WHERE fdA LIKE '%MYSTRING%'
OR fdB LIKE '%MYSTRING%'
OR fdC LIKE '%MYSTRING%'
OR fdD LIKE '%MYSTRING%'
as the table schema may change leaving my query outdated.
============
fdA | fdB | fdC | fdD
Is there an easy way of searching all the fields in a particular table to see if any of them contain a particular value? I'm trying to avoid having to build a statement like
SELECT * FROM tblA
WHERE fdA LIKE '%MYSTRING%'
OR fdB LIKE '%MYSTRING%'
OR fdC LIKE '%MYSTRING%'
OR fdD LIKE '%MYSTRING%'
as the table schema may change leaving my query outdated.