A screw doesn’t hold very well in end grain. On this project I decided to use woodworking inserts at the top of the table leg.
Because white oak is very dense and hard I drilled the hole just a little smaller than the woodworking inserts. I then used an Epoxy and sawdust mixture to help secure the woodworking inserts in place.