class-- Online SQL Editor to Run SQL Online. -- Use the editor to create new tables, insert data and

an anonymous user · February 04, 2023
-- 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');
-- fetch some values
SELECT * FROM students WHERE gender = 'F';
Output

Comments

Please sign up or log in to contribute to the discussion.