I learned everything I needed to learn online, mostly on this site and learning songs (with tabs from this site). If you want a book though, Hal Leonard's Bass Method is a series of three books from basic to advanced that have some quality stuff in them.
Only play what you hear. If you don’t hear anything, don’t play anything.
-Chick Corea