Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL]Blad z zapytaniem.
eminiasty
post
Post #1





Grupa: Zarejestrowani
Postów: 267
Pomógł: 0
Dołączył: 11.09.2015

Ostrzeżenie: (0%)
-----


Mam tabele z auto increment na user_id:



CREATE TABLE IF NOT EXISTS `mgr_users` (
`users_id` int(11) NOT NULL AUTO_INCREMENT,
`rank_id` int(11) NOT NULL,
`users_login` text NOT NULL,
`users_password` text NOT NULL,
`users_active` int(11) NOT NULL,
`users_online` int(11) NOT NULL,
`users_zm` text NOT NULL,
PRIMARY KEY (`users_id`),
UNIQUE KEY `users_id` (`users_id`),
KEY `rank_id` (`rank_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;


Chce zrobic insert:

string(256) "INSERT INTO mgr_users (`users_id`, `rank_id`, `users_login`, `users_password`, `users_active`)
VALUES ('', '1', 'root', '7e31dee49d75c','1')"

a jest blad zapytania, blad jest chyba dlatego ze usr id nie inkrementuje sie tylko dlaczego?
to jest backup z bazy a wczesniej dzialalo.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 01:42