Skip to content
Snippets Groups Projects
Commit 26ba5556 authored by joeappleton18's avatar joeappleton18
Browse files

updated insert stastement

parent 5bb202d1
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ public class Seeder {
stmt.execute("INSERT INTO todos (title) VALUES ('Vote for Joe')");
stmt.execute("INSERT INTO todos (title) VALUES ('Buy a car')");
// insert a completed todo
stmt.execute("INSERT INTO todos (title, completed) VALUES ('Buy lunch', 1)");
stmt.execute("INSERT INTO todos (title, completed) VALUES ('Ace Software Engineering', 1)");
// get the data
ResultSet rs = stmt.executeQuery("SELECT * FROM todos");
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment