Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. On what basis the size of any field in the table is decided.

On what basis the size of any field in the table is decided.

Scheduled Pinned Locked Moved Database
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sipder
    wrote on last edited by
    #1

    Is there any standard or as per need?

    G 1 Reply Last reply
    0
    • S Sipder

      Is there any standard or as per need?

      G Offline
      G Offline
      GuyThiebaut
      wrote on last edited by
      #2

      As far as possible you want to design your database so that once columns have been created they do not need amending in the future. The nice people at Microsoft provided us with the VarChar field which allows our text based database field sizes to grow over time. With regards to integer fields you need a fairly good idea of how big the numbers are going to get as there are four different types of integer. With regards to:

      Master Mind'z wrote:

      Is there any standard or as per need?

      The analysis phase should specify what column definitions are. My advice is to create a database where the columns are as future proofed as possible - this means avoid setting columns such as 'sales quantity' columns to tinyint. Also google your question as there will be pages dedicated to this area.

      You always pass failure on the way to success.
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups