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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:42:29+00:00 2026-05-13T01:42:29+00:00

I am working on a project which needs to insert the member birthday’s into

  • 0

I am working on a project which needs to insert the member birthday’s into MySQL database. But i am confused. Actually i am using it like that:

int(10)

So i change the format e.g. “27/06/1960” to unix time using PHP and use the function date() to show the birthday. Is there any better solution? and is there any good resource you recommend to read about “DATE, DATETIME, TIMESTAMP”?

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-05-13T01:42:29+00:00Added an answer on May 13, 2026 at 1:42 am

    The fastest way to find out when somebody birthday is would be to use 2 or 3 separate INT columns and probably an addition column to store the whole thing as a DATETIME. While you don’t normally use ints nor multiple columns to represent date, keep in mind if you have a lot of rows in this table, doing something like

    SELECT * FROM people WHERE birthday LIKE '%-12-24';
    

    is not very efficient. It works fine in smaller datasets but become slow if we start getting into large datasets (depends on your hardware). Sometimes you need to store data in unusual ways to keep your system efficient, the tiny amount of HD space you waste by having up to 4 sets of date columns (month, day, year, and store the whole thing as a datestamp) pays off in speed.

    By doing this you can simply do:

    SELECT * FROM people WHERE birth_month=12 AND birth_day=24
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project which needs to use youtube api. The html and
I'm working on a project which needs to design a web crawler in Java
I'm working to a Visual C++ 2008 project which needs two libraries (A and
A project I'm working on needs avro, which requires python-snappy, which requires snappy. I
I am working on a project which needs to extract text form a predefined
I'm working on a project for which I need to frequently insert ~500 or
I am working on project which needs setting of the project to be saved
I am working on a project which needs me to configure the gpio pins
I am working on project which needs to read .doc file given by client.
I'm working on a project which needs an embedded DSL to fullfill its expected

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.