SELECT first_name FROM user WHERE FIRST_COLUMN = '10'
What I need to know is how to reference “FIRST_COLUMN” in MYSQL syntax. The first column can be any name and so I need to make it flexible as long it should get the 1st column of any table. thanks
The short answer is : you can’t. (in a portable way, there are ‘tricks’ to look up the name of the first column and similar workarounds)
Many projects use as convention to name the first column ID and use that as the primary key.
By the query it looks like you are uing it as a primary key.
I recommend reading an introduction to relational databases as this is a rather strange request in the context of a relational database.