I’m a rookie and I’m stuck. I created the celebs table (I think). On the right, it says: ### Query Results Run a query to see results.
### Database Schema celebs0 rows id INTEGER name TEXT age INTEGER
Nothing seems to happen when I attempt to insert rows. I’ve quadruple-checked that I’m following the syntax exactly. No () or ; is out of place. But every time I select “Run” it still just says exactly what i pasted above: celebs 0 rows.
What am I missing? It’s too early in this course to be this stumped.
This exercise doesn’t work for me, either, and I have years of SQL experience. When I do a select *, it shows 4 identical rows having been inserted. Running the second section of the exercise adds 4 copies of each row.
Hi all,
I might be getting ahead of the game, but I was playing around and added an new record to the table with text in the age column (‘INF’). This was both accepted and displayed when checking with the
“SELECT * FROM celebs;” command.
INSERT INTO celebs (id, name, age)
VALUES (4, 'Kermit the Frog', 'INF');
I had assumed the age column was originally defined as an INTEGER (based on the previous page) and that I would receive some kind of error.
As this didn’t happen, can anyone what has happening in this situation?
Would the data_type for column age in the table celebs have been changed from INTEGER to TEXT, or was it TEXT already?
First, click on the reset button. After the first task, add the statement in your editor and for the 2nd task add the three statements below it without omitting the first one.
Maybe, it’s too late to answer your question (because you may have already figured it out). Anyways, I was pulling my hear looking at the same screen you’re. However, earlier in this FAQs @stetim94 suggested that we run a select statement like this: SELECT * FROM celebs; and your screen should show like the one the screenshot below.
I’m not getting any type of error when I try to run the command, but it won’t complete. When I do it for the first INSERT for Justin Bieber it moves along and asks for 3 more rows. I do those and then hit run and nothing happens. Below is what I have. I’ve tried this way and all uppercase for the commands. I’ve tried spaced like this and no spaces between the inserts as well