Shoppers couldn't fill their prescriptions at Walgreen Co.'s pharmacies for much of the day Friday, after a database crashed during an update.

The outage hit all of the chain's 8,200 pharmacy locations and kept many down for hours. The pharmacies were all back online Friday afternoon, spokesman Michael Polzin said. Prescription orders were queued during the outage and processed as the system was restored.

The...