min(),max()函数的返回值,
1.如果max(###),###是字符串,且是数字类字符串。返回值会把字符转换成数字。
SELECT min(t.c_businflag) FROM trequest t where t.c_fundcode='HA0065';
2.如果max(###),###是日期。返回值还是日期。
SELECT min(t.d_date) into i FROM trequest t where t.c_fundcode='HA0065';
3.如果max(###),###是字符串,是一般类字符串。返回值是该字符串。
1.如果max(###),###是字符串,且是数字类字符串。返回值会把字符转换成数字。
SELECT min(t.c_businflag) FROM trequest t where t.c_fundcode='HA0065';
2.如果max(###),###是日期。返回值还是日期。
SELECT min(t.d_date) into i FROM trequest t where t.c_fundcode='HA0065';
3.如果max(###),###是字符串,是一般类字符串。返回值是该字符串。