SQL Command to Categorise Wordpress Posts

Hi - I needed to work on a fresh install of Wordpress, and everything is working except for the fact that categories are not assigned to posts. I planned to have just one category anyways now, so is there a SQL command I can run which will put all posts in a category? Coz right now they are simply showing as blank, and therefore do not load when you try to load them on the site.