Here's the link to my table:
http://www.sqlfiddle.com/#!17/07f75
Here is my code, but I am getting syntax errors. I've played with a few things, like adding '' around my varchar data types, even changed the text, but am getting this error currently: ERROR: syntax error at or near "moon’" Position: 76
The syntax error has changed since I changed the text, as well as the position, but the type of error has stayed the same. I thought I understood how to insert data into the table but I am at a loss!
CREATE TABLE spacecrafts (
id integer,
name varchar(15),
launched integer,
country varchar(10),
mission text,
orbitingbody varchar(10),
operating varchar(1),
milesfromearth integer
);
INSERT INTO spacecrafts
VALUES
(1, ‘rocketeer1’, 2018, ‘USA’, ‘reach moon’, ‘mars’, ‘y’, 100000),
(2, ‘rocketer2’, 2015, ‘Brazil’, ‘reach moon’, ‘Jupiter’, ’n’, 303230),
(3, ‘rocketship’, 2014, ‘Germany’, ‘reach Jupiter’, ’n’, 67939380);
operating varchar(1)Note: Postgres has a native boolean type, save yourself the future headache and don't store booleans as strings.'