Created
February 6, 2017 07:33
-
-
Save Jammink2/013f7a92c0f783bcb427bce4922b390f to your computer and use it in GitHub Desktop.
For Splice Machine Tutorial Video – Creating scripts to run SQL commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --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