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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:11:11+00:00 2026-05-21T19:11:11+00:00

I see that I have this code at the end of a table that

  • 0

I see that I have this code at the end of a table that I want to insert on my db :

/*!40000 ALTER TABLE `to_import` ENABLE KEYS */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

When I try to execute the query on phpMyAdmin, I get #1231 - Variable 'sql_mode' can't be set to the value of 'NULL' and I don’t understand why.

So, can I remove that /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; ? Is it so important? Tried to learn about this, but in fact I don’t understand what it do.

  • 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-21T19:11:12+00:00Added an answer on May 21, 2026 at 7:11 pm

    Probably there is an SET @OLD_SQL_MODE = @@sql_mode; SET SQL_MODE='something' above the table definition. Apparently you forgot to include that in your copied SQL.

    Your export tool wants the ALTER TABLEs be executed with a certain SQL mode and sets that before the ALTER TABLEs. To reset it later to the value it was before, it stores the current value in a variable called @OLD_SQL_MODE.
    The purpose of that line is to reset the SQL_MODE to whatever it was before.

    So you need to have both, the SET above and the SET below your table definition or none of them.

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

Sidebar

Related Questions

how to see items that i pick on ListView ? i have this code:
I see that this has been asked many times. But, unfortunately I have not
I have something that looks like this: As you can see, Blambo is a
EDIT: See this in action here: http://jsbin.com/emobi/5 -- and that's using mouseenter/mouseleave. I have
I have following code. Damn, I stuck with this, I know that is very
Is there a way to see users that have certain security role assigned? I'm
I see that some C libraries have ability to specify custom memory allocators (
I have come to see that Sencha Touch framework is improving noticeably. Since I
I have just successfully installed CakePHP and I see that I can edit the
I see on sites that they sometimes have a statistic showing how many views

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.