I need a number column to serve as an indicator for something I am working on, but I don’t want it to take up more than a single byte per record. If I use NUMBER(1), would this satisfy my requirement?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A
NUMBER(1)column will take up however much space it requires to store a 1 digit number. That is likely to be more than 1 byte (negative numbers will require 3 bytes, a 0 requires 1 byte, the numbers 1-9 require 2 bytes)A table with a
VARCHAR2(1 BYTE)column, on the other hand, will use at most 1 byte per row of storage