Skip to content

Instantly share code, notes, and snippets.

@Jammink2
Created February 6, 2017 07:33
Show Gist options
  • Select an option

  • Save Jammink2/013f7a92c0f783bcb427bce4922b390f to your computer and use it in GitHub Desktop.

Select an option

Save Jammink2/013f7a92c0f783bcb427bce4922b390f to your computer and use it in GitHub Desktop.
For Splice Machine Tutorial Video – Creating scripts to run SQL commands
--to run this script from splice prompt:
-- splice> run '/<path>/<to>/<script>/setup_scripts.sql';
--create schema
create schema script;
-- set schema
set schema script;
--create table
create table DOMAIN_DATA (
sex_code char(1),
gender varchar(100)
);
insert into DOMAIN_DATA(sex_code, gender) values ('F', 'Female');
insert into DOMAIN_DATA(sex_code, gender) values ('U', 'Unknown');
insert into DOMAIN_DATA(sex_code, gender) values ('M', 'Male');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment