CREATE TABLE members (
memberID SERIAL,
username VARCHAR(255) NOT NULL,
password VARCHAR(60) NOT NULL,
email VARCHAR(255) NOT NULL,
active VARCHAR(255) NOT NULL,
resetToken VARCHAR(255) DEFAULT NULL,
resetComplete VARCHAR(3) DEFAULT 'No',
CONSTRAINT members_pk PRIMARY KEY (memberID)
);
I am trying to use the provided statement in my PostgreSQL db, but when I attempt to execute it I am getting a syntax error:
ERROR: syntax error at or near "CREATE" LINE 1: SELECT COUNT(*) AS total FROM (CREATE TABLE members (
As far as I know, my SQL is fine. I am not sure what is going wrong here.