Jump to content

SQL video: "#1366 - Incorrect integer value: ERROR"


Recommended Posts

Hi :)


So I am doing the PHP and MySQL-course in the studioweb-course. And I am using Xampp on a Mac, so the fields in my SQL version does not look exactly like they do in the video.

I am currently at the video "PHPMyAdmin and Basic MySQL: part 2".

When I write in the value of " INSERT INTO people (name) VALUES ('Stefan’); " around 2.55 into the video, I get the message: " INSERT INTO people (name) VALUES ('Stefan’);

#1366 - Incorrect integer value: 'Stefan' for column `DATABAS2`.`people`.`name` at row 1 ".

Any idea on what that means and how to solve it? And why is it showing up in my video and not in the lesson?


Best regards


Link to comment
Share on other sites

It worked when I did it today. Changed from INT to Varchar.


But another thing. In the next lesson I was trying to insert an UPDATE-statement. But for some reason this will return:

SQL query: Copy

UPDATE people

SET name = ”Jimmy the Frog”

WHERE id = 3



MySQL said:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'the Frog”
WHERE id = 3' at line 2

I don't know why that happens but this is a screenshot of the options I had picked before I pasted the UPDATE statement:





Edited by North34
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...