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 929487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:10:48+00:00 2026-05-15T20:10:48+00:00

I use tinyint (1) for fields which contain either 1 or 0, for xample,

  • 0

I use tinyint (1) for fields which contain either 1 or 0, for xample, is_active. I can use enum (‘1′,’0’) instead but not sure which cases I should use enum or tinyint. Any comments/suggetion?

Thanks

Js

  • 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-15T20:10:49+00:00Added an answer on May 15, 2026 at 8:10 pm

    In your case both enum and tinyint will have the same size (i.e. 1 byte). However, the enum option is less flexible if your data changes. So use it if you’re absolutely sure your data definition will not change (eg. what if you will you be adding a 'disabled' state in the future?).

    If you decide to stick with the enum a definition like enum('active', 'not_active') is more practical.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know how can I use tinyint in SQL Server 2005
I use MySql 5.5.8 and I can't find out how should I write which
It seems I should use tinyint(); but I don't know how to implement it?
Lets assume I want to save the count of datagrid rows which can be
I'm under the assumption that INT(1) is the exact same thing as TINYINT(1) but
I'm writing a function that I need to use either a TABLE variable for
We use 4-4-5 Accounting Periods. In case you aren't familiar with this, you can
What's the best practice for fields that hold true/false values? Such columns can be
I have two MySQL queries which I use to help me arrange news on
Possible Duplicate: Which MySQL Datatype to use for storing boolean values? I am 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.