MySQL zwrócił komunikat: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'auto_incremant, sLogin char(16), sPassword char(16), primary
To jest ten kod do mysql
CREATE TABLE tabSession ( idSession int NOT NULL AUTO_INCREMENT, idUser int NOT NULL DEFAULT 0, sid char(32), tLastAction timestamp, tDate timestamp, sIP char(15), nHits int NOT NULL DEFAULT 0, bActive tinyinit NOT NULL DEFAULT 1, PRIMARY KEY(idSession), KEY(sid(3)) ); CREATE TABLE tabUser ( idUser int NOT NULL auto_incremant, sLogin char(16), sPassword char(16), PRIMARY KEY (idUser), KEY(sLogin(3)) ); INSERT INTO tabUser (sLogin,sPassword) VALUES ('admin','haslo');