create table postgresql foreign key
snippet in sql

create table postgresql foreign key

user2642

CREATE TABLE so_items (
	so_id INTEGER,
  	...
	FOREIGN KEY (so_id) REFERENCES so_headers (id)
);