forums › forums › SQLyog › Using SQLyog › Error 1062
- This topic is empty.
-
AuthorPosts
-
-
September 22, 2003 at 1:32 pm #14931
CalEvans
Member -
September 22, 2003 at 1:57 pm #14932
mchenrycounty
MemberI deleted the row, and changed the table type to MyISAM and it didn't work.
Can you explain the Delete From, How do I do that?
Table Name =users
Column = “id”
Row= with problem= id = 2147483647, when it should be about 369
-
September 22, 2003 at 2:10 pm #14933
Shadow
MemberIssue an INSERT INTO command that explicitly sets the id column to the next desired value. That will reset the counter.
-
September 22, 2003 at 2:37 pm #14934
Shadow
MemberMy bad, I replied before thinking! An INSERT INTO works only if you specify a higher value than the current seed. If you use MyISAM then you should take advantage of the -A option of myisamchk:
Quote:-A or –set-auto-increment[=value]Force AUTO_INCREMENT to start at this or higher value. If no value is given, then sets the next AUTO_INCREMENT value to the highest used value for the auto key + 1.
-
September 22, 2003 at 3:28 pm #14935
mchenrycounty
MemberShadow
what do I actually type to set to a value I keep getting
and then do I hit “execute query”
This is the error code I get when I hit “execute query”
Error Code : 1064
You have an error in your SQL syntax near 'auto-increment[=372] ' at line 1
(350 ms taken)
Thanks
-
September 22, 2003 at 3:39 pm #14936
mchenrycounty
MemberWhat if I unchecked the auto-increment, and then assigned the id number myself?
-
September 22, 2003 at 3:48 pm #14937
mchenrycounty
MemberIts fixed: these are the steps I took:
1. Clicked on the Table
2. went to “Alter Table Structure”
3. went to “Other Properties”
4. then inserted the next number in “Autoincremet box”
Thanks
-
-
AuthorPosts
- You must be logged in to reply to this topic.