I have two tables where the column names of table B gets stored as values in table A. I need to fetch max value of columns from table B. Could you please help in acheiving this..
table A structure as follows
| id | name |
| 1 | ABC |
| 2 | XYZ |
table B has column names as 'ABC' and 'XYZ'. I'm stuck to fetch max of columns ABC and XYZ from table B. Any help would be of highly appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…