Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7508075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:36:56+00:00 2026-05-29T22:36:56+00:00

I need a number column to serve as an indicator for something I am

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:36:57+00:00Added an answer on May 29, 2026 at 10:36 pm

    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)

    SQL> create table foo( col1 number(1) );
    
    Table created.
    
    SQL> insert into foo values( 1 );
    
    1 row created.
    
    SQL> insert into foo values( 9 );
    
    1 row created.
    
    SQL> insert into foo values( -7 );
    
    1 row created.
    
    SQL> select vsize(col1), col1 from foo;
    
    VSIZE(COL1)       COL1
    ----------- ----------
              2          1
              2          9
              3         -7
    

    A table with a VARCHAR2(1 BYTE) column, on the other hand, will use at most 1 byte per row of storage

    SQL> create table bar( col1 varchar2(1) );
    
    Table created.
    
    SQL> insert into bar values( 'Y' );
    
    1 row created.
    
    SQL> insert into bar values( 'N' );
    
    1 row created.
    
    SQL> select vsize(col1), col1 from bar;
    
    VSIZE(COL1) C
    ----------- -
              1 Y
              1 N
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a c# number something that can handle very large numbers but also
I need to fetch a number of rows between two column values, using a
I need to update my table because a number of fields in a column
I need to query a large number of rows (containing a timestamp column) and
I need to combine to a string column and the result of a row_number()
I need a pseudorandom number generator algorithm for a assembler program assigned in a
i need to get number of order highlighted element (by javascript, jquery): <li>A</li> <li>B</li>
I need to count number of repeating and position where they repeat of all
I need format a number with NSNumberFormatter . If number is small (e.g. 0.000001
I'm developing a simple web application where in I need to display number a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.