I wanted something like this:
SELECT *Name FROM person
I would want this to return all the columns whose name has Name
such as FirstName, LastName, MiddleName
columns.
Is this possible in mySQL?
I wanted something like this:
SELECT *Name FROM person
I would want this to return all the columns whose name has Name
such as FirstName, LastName, MiddleName
columns.
Is this possible in mySQL?
Following query can be used to list all fields having name keyword(LIKE operations) in the column name in entire DB exists in MYSQL Server:
SELECT
table_schema "Database", table_name, column_name,ordinal_position "Field Position"
FROM information_schema.columns WHERE column_name LIKE '%name%'