San Antonio Tornado Warning!

In any situation in which the structure can come down, getting under the sturdiest thing possible is the recommended course of action. Even a doorway or a desk; anything to break the fall of the ceiling and subsequent floors.
In a nuclear explosion the ducking is for the shockwave, the covering for the fireball/mass amount of infrared light that would otherwise cook you.