在执行完插入后 再执行 select @@identity from users 就OK 就是刚才插入的那行的 ID了
SELECT MAX(id) FROM Users 执行这个查询,就可以返回最新的ID