-- create a table CREATE TABLE students ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, gender TEXT NOT NULL ); -- insert some values INSERT INTO students VALUES (1, 'Ryan', 'M'); INSERT INTO students VALUES (2, 'Joanna', 'F'); insert into students values (3,'Carine','F'); insert into students values (4,'Sophie','F'); insert into students values (5,'Danake','F'); -- fetch some values select * from students ; SELECT * FROM students WHERE gender = 'F'; select * from students where gender = 'M'; select * from students where name ='Joanna'; select * from students where name = 'Ryan' ; select * from students where id = 1 ; select * from students where id = 2 ; select * from students ; select * from students where name = 'Carine';
To embed this project on your website, copy the following code and paste it into your website's HTML: