select iSNULL(max(type_id),0)+1 from c_typewhere type_class=\'类型\' isnull有两个参数,第一个是需要判断的参数, 第二个是如果第一个参数为null时,用于替换的值 相关文章: