Screws or hooks, wherein a rod-clamping part and a bone-anchoring part can pivot relative to each other