oracle 获取最大id

max(id) 么 ,不一定对。
因为如果是按字符串排列,999会大于 100000。

用max(to_number(id)) 比较好。
select max(to_number(id)) from t_user;

猜你喜欢

转载自blog.csdn.net/enthan809882/article/details/105955086