Quote:
Originally posted by calico
so you suggest using INTEGER (or PLS_INTEGER) in variable definitions within pl/sql scripts? and NUMBER for any standard database definitions?
calico
|
That's what I do. You could use INTEGER in table definitions, but it just gets translated to NUMBER(38) anyway - as you'll see when you DESC the table. Also, you can't constrain the size e.g. INTEGER(2) as you can with NUMBER. I think it's just there for compatibility with standards.
In PL/SQL, you can constrain INTEGER sizes, and it can be useful information to a programmer to see that a value is an INTEGER(2), so I use INTEGER there where appropriate.