Skip to content

Instantly share code, notes, and snippets.

@Jammink2
Created February 6, 2017 07:21
Show Gist options
  • Save Jammink2/90e77ddc27487b711ca627ff3ea0b1c2 to your computer and use it in GitHub Desktop.
Save Jammink2/90e77ddc27487b711ca627ff3ea0b1c2 to your computer and use it in GitHub Desktop.
For Splice Machine Tutorial Video – Creating scripts to run SQL commands
#!/usr/bin/bash
echo "Importing into Splice..."
sqlshell.sh << EOF
set schema script;
select * from DOMAIN_DATA;
select count(1) from DOMAIN_DATA;
exit;
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment