SET
SQL DIALECT 3; -- Erster Fehler
SET NAMES UTF8; -- Zweiter Fehler
CREATE TABLE USERS (
PKID WP_CHAR16_OCTETS,
USERNAME WP_VARCHAR100 NOT NULL,
UPPERUSERNAME WP_VARCHAR100,
APPLICATIONNAME WP_VARCHAR100 NOT NULL,
EMAIL WP_VARCHAR100 NOT NULL,
UPPEREMAIL WP_VARCHAR100,
COMMENT WP_VARCHAR100,
USERPASSWORD WP_VARCHAR100 NOT NULL,
PASSWORDSALT WP_VARCHAR100,
PASSWORDFORMAT WP_INTEGER,
PASSWORDQUESTION WP_VARCHAR100,
PASSWORDANSWER WP_VARCHAR100,
ISAPPROVED WP_BOOL,
LASTACTIVITYDATE WP_TIMESTAMP,
LASTLOGINDATE WP_TIMESTAMP,
LASTPASSWORDCHANGEDDATE WP_TIMESTAMP,
CREATIONDATE WP_TIMESTAMP,
ISONLINE WP_BOOL,
ISLOCKEDOUT WP_BOOL,
LASTLOCKEDOUTDATE WP_TIMESTAMP,
FAILEDPASSWORDATTEMPTCOUNT WP_INTEGER,
FAILEDPASSWORDATTEMPTSTART WP_TIMESTAMP,
FAILEDPASSWORDANSWERCOUNT WP_INTEGER,
FAILEDPASSWORDANSWERSTART WP_TIMESTAMP
);
ALTER TABLE USERS ADD CONSTRAINT PK_USERS PRIMARY KEY (PKID); -- Dritter Fehler...