Planets and moons

Which stars have planets at all?

Not all stars have planets. There are three classes of stars which are unlikely to have planets:

There is a possible explanation why large stars seem to be planetless. Within each solar system, there is an inner limit within which planets cannot form because it is simply too hot. Above about 1000 or 2000 degrees C, not even metals and silicates condense any more. In our solar system, this limit is quite close to the sun, far within Mercury's orbit. But a huge O star is so hot that even the outer fringes of its protoplanetary disk won't condense.

This leaves us with the medium to small population I stars. Most of these stars are still on the main sequence (the sun has a main-sequence lifetime of 10000 million years, thus a red giant of solar mass is at least 10000 million years old, and that was the time when the last population II stars were born).