updated with more explanation
If you want to build this into your theme – this tutorial for adding some code to functions.php will work. Keep in mind you will have to download TinyMCE and add files to /wp-includes for this to work.
That’s because “table management” is a plugin for TinyMCE and doesn’t ship with WordPress. For that reason, I would highly recommend just using a plugin.
Relevant Links