I have a table named condition, and whenever I try to query the table or insert data into it I am getting an error.
CREATE TABLE IF NOT EXISTS `PrisonDB`.`Condition` (
`condition_id` INT NOT NULL,
`condition_description` VARCHAR(45) NULL,
PRIMARY KEY (`condition_id`))
ENGINE = InnoDB;
And if I try to query it I get:
mysql> select * from condition;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'condition'
at line 1
Everything looks right to me, the only thing I can think of is condition is a special keyword or something in mySQL.