![]() |
![]() |
-Gość- |
![]()
Post
#1
|
Goście ![]() |
mam kod mysql-a:
teraz gdy dodaje zapytanie SQL:
MySQL zwraca komunikat: #1264 - Out of range value adjusted for column 'id' at row 1 tak jakby w mysqlu auto_increment przestal dzialac :|||||||||| co jest bez sensu bo wczoraj ejszcze dzialal ;/ moja ver mysqla to: 5.0.22-community-nt |
|
|
![]() |
-Gość- |
![]()
Post
#2
|
Goście ![]() |
znalazlem cos takiego:
http://forums.eqdkp.com/lofiversion/index.php/t3101.html czyli musze zrezygnowac z przypisywania id ? :| a mzoe jest jakis sposob aby w zapytaniu sql mysql sam pobral pierwsze wolne id i przypisal ? |
|
|
![]()
Post
#3
|
|
![]() Grupa: Moderatorzy Postów: 4 465 Pomógł: 137 Dołączył: 26.03.2004 Skąd: Gorzów Wlkp. ![]() |
Error
Varchar ma 255 znaków, a ile ma słówko 'test' ![]() Ten post edytował Cysiaczek 5.07.2006, 15:14:11 -------------------- To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness; chaotic, confused, vulnerability, to inform yourself. Think for yourself. Question authority. |
|
|
-Gość- |
![]()
Post
#4
|
Goście ![]() |
Error Varchar ma 255 znaków, a ile ma słówko 'test' ![]() to raczej nie powodowalo bledu :| ale problem juz calkowicie rozwiazany.. poprostu w mysqlu w ver >=5.x nie mozna dawac zadnej wartosci gdy pole ma wlasciwosc auto_increment wiecej: http://dev.mysql.com/doc/refman/5.0/en/exa...-increment.html wiec ten kod wystarczy zamienic na: INSERT INTO `xxx` ( `nazwa` ) VALUES ( 'test' ) i bedzie dzialac ;-) chybam, ze cos robie nei tak.. ![]() dziwi mnie tylko to dlaczego wczoraj wszystko to dzialalo a dzis juz nie ![]() |
|
|
![]()
Post
#5
|
|
![]() Grupa: Moderatorzy Postów: 4 465 Pomógł: 137 Dołączył: 26.03.2004 Skąd: Gorzów Wlkp. ![]() |
o.0
![]() -------------------- To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness; chaotic, confused, vulnerability, to inform yourself. Think for yourself. Question authority. |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 03:34 |