I want to know how can we get the column name from the table where data=this is the condition.
Suppose I want to get the column name where data="this" where this is the data present in that column
username
ram
sham
gaurav
here username is the column name and i want to get this name on the basis of ram,sham etc
SHOW COLUMNSdisplays information about the columns in a given table. TheLIKEclause, if present, indicates which column names to match. TheWHEREclause can be given to select rows using more general conditions.Here’s the syntax :