How to update packages?

What is the difference in both sql query?