I have a syntax error in my SQL queries,what's wrong?
this is the query:
CREATE TABLE post_cat(
cat_id int(2) AUTO_INCREMENT NOT null PRIMARY key,
cat_text varchar(255),
post_cat varchar,
FOREIGN KEY (post_cat) REFERENCES post(post_cat)
)
telegram.post_cat(errno: 150 "Foreign key constraint is incorrectly formed") (Details…)posttable which hold thepost_catbefore this query.