haitao: select max( isnull(Customid, -1) ) from custominfo [阅读: 632] 2005-10-19 03:11:58 不过max里遇到null不会导致结果是null吧,加是遇到null会导致结果是null