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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:09:19+00:00 2026-06-14T20:09:19+00:00

I have a MySql table with some fields which are of type TIMESTAMP .

  • 0

I have a MySql table with some fields which are of type TIMESTAMP.

I want to detect those which are “invalid” (have never had data inserted and there is no default).

Is there some MySql constant I can use ? e.g SELECT .. WHERE timestamp_column=INVALID_DATE_TIME

Or should I just compare with “0000-00-00 00:00:00 “?

  • 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-14T20:09:20+00:00Added an answer on June 14, 2026 at 8:09 pm

    Yes there would be either null or "0000-00-00 00:00:00" if you have not considered this at the time of insert

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

Sidebar

Related Questions

I have a table which already contains an index in MySQL. I added some
I have some code which needs to ensure some data is in a mysql
I have a MySQL table with many numeric columns (some INT, some FLOAT). I
Here's some background info. I have three MySQL tables (all InnoDB). The first table
I have a table in MySQL with a field of type DATE for storing
I have a MySQL table for persistence of some Java objects and use Hibernate
I have some PHP script for export MYSQL table into Excel format, but I
I made some CMS in PHP which manipulates with data from MySQL. In my
I have a table, named stu_id which contain 3 fields, like sem_id, crs_id, session
I have some problem whith such mysql_query INSERT INTO table VALUES ('', CURDATE()-1) why

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.