Skip to content

Instantly share code, notes, and snippets.

@pior
Created October 7, 2014 21:20
Show Gist options
  • Save pior/c6b4e468d9bc1ee48570 to your computer and use it in GitHub Desktop.
Save pior/c6b4e468d9bc1ee48570 to your computer and use it in GitHub Desktop.
dev=# create table pior.event_stage (
event_id CHAR(56),
user_id VARCHAR(20),
session_id VARCHAR(32),
ts timestamp NOT NULL DEFAULT sysdate
) ;
CREATE TABLE
dev=# insert into pior.event_stage VALUES ('event_123', 'user_123', 'session_123');
INSERT 0 1
dev=# select * from pior.event_stage;
event_id | user_id | session_id | ts
----------------------------------------------------------+----------+-------------+----------------------------
event_123 | user_123 | session_123 | 2014-10-07 21:19:44.736245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment