- #1
Crystal037
- 167
- 7
- Homework Statement
- I can't understand what is meant by precision and scale while declaring a variable as number datatype in SQL Oracle. I have created a table example and specified attr1 as number(1,1) datatype. According to my understanding it can take one digit before decimal and 1 digit after decimal.But if I'm trying to insert values like 1.1 it's showing value larger than specified precision allowed for this column. Can u explain if my understanding of precision is correct.
- Relevant Equations
- create table example(
attr1 number(1,1));
insert into example values(1.1);
Last edited by a moderator: