CREATE TABLE celebs (id INTEGER, name TEXT, age INTEGER);
INSERT INTO celebs (id ,name,age)
VALUES (1,‘Justin Bieber’,21);
SELECT * FROM celebs;
Error: near line 1: table celebs already exists
please explain its meaning
CREATE TABLE celebs (id INTEGER, name TEXT, age INTEGER);
INSERT INTO celebs (id ,name,age)
VALUES (1,‘Justin Bieber’,21);
SELECT * FROM celebs;
Error: near line 1: table celebs already exists
please explain its meaning
That is saying that a table called celebs already exists. It sounds like you don’t need that first line. Just start off with your INSERT command.
A post was split to a new topic: This is the code that I am typing into the exercise but appears is not correct
A post was split to a new topic: I am getting the same error and can’t get past this point in the course