I would use the API found here:
https://docs.kentico.com/api10/content-management/pages#Pages-Updatingthelatesteditedversionofpages(pagesunderworkflow)
I would just create a temporary aspx page somewhere (like CMSPages), add a button and run this code on the click of it, finding your page types and doing the check out, update, checkin as described.
This is the downside of doing SQL updates, you want to try to leverage Kentico's API as much as possible as it will handle the versionining and such, it's risky making updates through the database. Plus if you have staging enabled, no pure-sql update will be caught so you can't push the change to the other environments.