sql 选择两列中最大的那列
sql忘完了,最近要好好补补了。
从表table中取出A和B两列中值最大的那列。
select A = (case
when A > B then A
else
B
end )
from Table_1;
sql忘完了,最近要好好补补了。
从表table中取出A和B两列中值最大的那列。
select A = (case
when A > B then A
else
B
end )
from Table_1;