The other day I needed a list of UK post towns matched up to postcode areas, which I found on wikipedia.
Anyway I have tidied it up and put it into two database tables postcode and town
You can download the SQL file here towns.zip
Hope it comes in useful.