Chapter 9. Numbers
Where would we be without numbers? While those of us who are math-challenged might prefer a text-only view of the world, the reality is that much of the data in any database is numeric. How much inventory do we have? How much money do we owe? At what rate is our business growing? These are just some of the questions that we expect to answer using numbers from databases.
When working with numbers in PL/SQL, you need to have at least a passing familiarity with the following:
The numeric datatypes at your disposal. It also helps to know in what situations they are best used.
Conversion between numbers and their textual representations. How else do you expect to get those numbers into and out of your database?
PL/SQL’s rich library of built-in numeric functions. After all, you don’t want to reinvent the wheel.
Each of these topics is discussed in this chapter. I’ll begin by looking at the datatypes themselves.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access