I should have been more specific and mentioned that I’m currently using sqlite.
SCOPE_IDENTITY()将返回您当前范围内的最后生成的身份值:
SCOPE_IDENTITY()
SELECT SCOPE_IDENTITY() AS NewID