Guest User

Untitled

a guest
Dec 13th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. CREATE TABLE experiment (
  2. e_id text PRIMARY KEY,
  3. e_started date NOT NULL DEFAULT CURRENT_DATE,
  4. e_ended date
  5. );
  6.  
  7. INSERT INTO experiment (e_id) VALUES ('this_experiment_about_AAAAA');
  8.  
  9. SELECT e_id, e_started FROM experiments WHERE e_ended IS NULL;
Add Comment
Please, Sign In to add comment