对于MySQL中的下表(表中的价格表示不同供应商提供的价格)
Products | Price1 | Price2 | Price3
Apple | 2 | 3 | 4
Pear | 2 | 1 | 1.5
Strawberry | 10 | 12 | 11
Run Code Online (Sandbox Code Playgroud)
我怎样才能得到Apple的最大价格是Price3的结果,Pear的最大价格是Price1,草莓的最大价格是Price2,例如,我希望从上表中检索结果:
Products | MaximunPrice
Apple | Price3
Pear | Price1
Strawberry | Price2
Run Code Online (Sandbox Code Playgroud) mysql ×1