Get current id with dummy update sql. because select can't work under massive update.