select Max(deal_id ) from wf_stepdeal t Max(step_index)+1 转载于:https://www.cnblogs.com/Gracedream/archive/2011/07/25/2116198.html