Why don't u use varchar(50) instead of text(50)??
Gabriel Fortuna wrote:
Hi All,
I'm doing some PHP stuff using postgres as my sql backend. I have this form that adds stuff to a table, but for some reason if the table is too big, the stuff doesnt get added, the error I get goes something like this: Warning: 1 is not a valid Postgresql resource...
I decided to delete the table and rebuild it with a limit of 50. Here is the code used to create the table.
CREATE TABLE "queueuser"
(
"password" text(50) not null unique,
"username" text(50) not null,
"dept" text(50) not null,
"name" text(50) not null,
"surname" text(50) not null,
"jobtitle" text(50) not null,
"email" text(50) not null
);
Now I get an error that says their is a parser error at or near "(" I've tried about 10 different types of syntax. Nothing works. Im tearing my hair out, someone please help.
TIA