Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
labs:postgresql [2016/06/27 16:06] – [Creating Sequences] adminlabs:postgresql [2016/06/27 16:09] – [Creating Tables] admin
Line 60: Line 60:
  
 ===== Creating Tables ===== ===== Creating Tables =====
 +
 +Example: 
 +
 +  CREATE TABLE table_name (
 + id integer NOT NULL default nextval('inscription_id_seq'),
 + eagle_id char(9),
 + floor_to_graffito_height varchar(30),
 + description text,
 + comment text,
 + translation text,
 + FOREIGN KEY ( eagle_id ) REFERENCES EAGLE_inscriptions(id),
 + PRIMARY KEY (id)
 +  );
 ===== Creating Sequences ===== ===== Creating Sequences =====
    create sequence "majors_id_seq";    create sequence "majors_id_seq";
labs/postgresql.txt · Last modified: 2017/07/25 16:22 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0