SQL command to pull all pages from the database

I need to write a small SQL query to pull the current version of all of my pages.  How can I do this?