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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:27:35+00:00 2026-06-10T13:27:35+00:00

Generally I choose int or tinyint for that but if I choose varchar it

  • 0

Generally I choose int or tinyint for that but if I choose varchar it will be more clear while seeing data directly from the database table or while querying it.
But would it be the good practice to use varchar?
Or what is the good practice?

Thanks!

  • 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-06-10T13:27:36+00:00Added an answer on June 10, 2026 at 1:27 pm

    For indexing reasons a small numeric column would be better to use than a varchar, the size of which can only be determined by how many values are in the enumeration. If you require the text value to be returned from the database, store the text values in a separate lookup table and join when required.

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

Sidebar

Related Questions

Generally speaking, the SQL queries that I write return unformatted data and I leave
Generally speaking, when given a cookie that has no expiration period, modern browsers will
I know that, generally, if and choose statements should be avoided in deference to
while creating AVD what is the use of File: in SDcard generally we will
Generally,our fixes/patches for any bugs involves changes in multiple files and we will commit
Generally in programming, the floating point data types should not be compared for equality
Generally speaking, for combining a lot of data is it better to use a
Suppose I have the following two data structures: std::vector<int> all_items; std::set<int> bad_items; The all_items
After reading some posts like this one: Choose File Dialog It appears that Android
Is anyone aware of a Visual Studio 2010 Add-In that will automatically allow you

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.