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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:39:58+00:00 2026-06-14T15:39:58+00:00

Here is the message of mysql error 1293: SQL Error (1293): Incorrect table definition;

  • 0

Here is the message of mysql error 1293:

SQL Error (1293): Incorrect table definition; there can be only one
TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

what is the reason for mysql only allows one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause per table.

  • 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-14T15:40:00+00:00Added an answer on June 14, 2026 at 3:40 pm

    Only one TIMESTAMP field can default to “now”
    I should say first of all, if you are trying to define more than one MySQL TIMESTAMP fields using CURRENT_TIMESTAMP or “default now”, unfortunately that is bad, you can’t do it in MySQL
    I just got this MySQL TIMESTAMP error when trying to create a table like this:

    create table users (
        id int unsigned auto_increment not null primary key,
        username varchar(50) not null unique,
        password varchar(40) not null,
        email_address varchar(128) not null unique,
        email_sent timestamp not null,
        last_login timestamp not null default now()
        ) ENGINE = InnoDB;
    

    When I first solved this problem I thought MySQL required the “CURRENT_TIMESTAMP (default now)” field to be declared before any other TIMESTAMP fields, so I solved my problem like this:

    create table users (
       id int unsigned auto_increment not null primary key,
       username varchar(50) not null unique,
       password varchar(40) not null,
       email_address varchar(128) not null unique,
       last_login timestamp not null default now(),
       email_sent timestamp not null
     ) ENGINE = InnoDB;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the complete error message that I get in the Package Manager Console
Getting a MySQL error message when I try to insert a text message from
Full error message: You have an error in your SQL syntax; check the manual
How can I show my all blog post with images? Example: Mysql table: post_id
I keep getting the following error message when trying to UPDATE one of my
Incorrect key file for table 'widgets'; try to repair it This is the error
Here is the message. What's wrong with it? Is it a installtion problem? TITLE:
Here is my code: void subroutine(const char *message) { printf(message); } And here is
Here I have to send and receive dynamic data using a SysV message queue.
here's the main code at first I thought is was the message box but

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.