获取 "syntax error at or near '('" Postgresql

Getting "syntax error at or near '('" Postgresql

我是 SQL 的新手。我收到此错误,我不确定问题出在哪里:

syntax error at or near "("

这是我对 postgres 的 SQL 查询:

DROP TABLE IF EXISTS posts;

CREATE TABLE posts (
    title VARCHAR(10000) NOT NULL,
    url VARCHAR(10000) NOT NULL,
    img VARCHAR(10000),
    source VARCHAR(50) NOT NULL,
    content VARCHAR(65535),
    tldr VARCHAR(65535) NOT NULL,
    getTime BIGINT(255) NOT NULL,
    category TINYINT(255)
);

Postgres 没有 TINYINT 类型,它有 SMALLINTBIGINTSMALLINT 都没有宽度:

CREATE TABLE posts (
    title VARCHAR(10000) NOT NULL,
    url VARCHAR(10000) NOT NULL,
    img VARCHAR(10000),
    source VARCHAR(50) NOT NULL,
    content VARCHAR(65535),
    tldr VARCHAR(65535) NOT NULL,
    getTime BIGINT NOT NULL,
    category SMALLINT
);