Home > database > For a character in the mysql query table in all fields
For a character in the mysql query table in all fields
Time:09-25
As shown in figure:
Such as I want to check all the fields in the presence of characters' a ' Can only write so: Select * from table1 where accession='a' or gi='a' or PDB='a' or... Is there a simple point of writing, if the field is more, not to write a long, Thank you very much!
CodePudding user response:
Select * from table1 where 'a' in (accession, gi, PDB,... )