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

  • Home
  • SEARCH
  • 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 5943821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:27:02+00:00 2026-05-22T16:27:02+00:00

Most often i work with cms but did not worked with sql directly too

  • 0

Most often i work with cms but did not worked with sql directly too much before. I am making a facebook page directory where i am saving page ids the length of facebook page id is 10-13 digit sometimes. So what types of int i should use. I am thinking about BIGINT but what should be the length of it ?

Here is the table visually. I would be glad if you can advice the length of the fields.Database Table

Here is the datatype and length i comeup with. But i am confused if these are efficient:

  1. ID: Database id for the pages (int 5)
  2. page_id: Facebook page id (bigint)
  3. page_name: Facebook page name (varchar 50)
  4. username: username of the page (varchar 50)
  5. likes: number of likes (int)
  6. Link: Link to the page (varchar 100)
  7. Time_added: current timestamp
  • 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-22T16:27:03+00:00Added an answer on May 22, 2026 at 4:27 pm

    Correct, you’ll need a BIGINT: http://dev.mysql.com/doc/refman/5.6/en/numeric-types.html.

    I’d recommend longer lengths for your VARCHAR fields. It won’t hurt anything, and URLs in particular can get very long. I’d probably bump up the two 50-character fields to 100, and allow for 1,000 characters in the Link field.

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

Sidebar

Related Questions

I always work in windows environment and most often to write the program in
I am running this coda-slider script from http://www.ndoherty.biz/ Not Everytime, but quite often on
Which of theese two alternatives do you find yourself using most often, and which
Encoding issues are among the one topic that have bitten me most often during
For parsing player commands, I've most often used the split method to split a
While learning different languages, I've often seen objects allocated on the fly, most often
I am often facing design patterns, and I find most articles explaining them a
I use interfaces/abstract base classes for most of my types and don't often inherit
Here at work, we often need to find a string from the list of
I work on a platform which runs Java apps. Those apps are often obfuscated,

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.