Skip to content

Instantly share code, notes, and snippets.

@Jammink2
Created February 6, 2017 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jammink2/11568e39e09e31844e4079fc62624ae1 to your computer and use it in GitHub Desktop.
Save Jammink2/11568e39e09e31844e4079fc62624ae1 to your computer and use it in GitHub Desktop.
for Splice Machine Tutorial Video: Using Command Prompts for Transactions
-- second console
set schema CP;
select * from DOMAIN_DATA;
-- table doesn't exist in this session yet, therefore
-- ERROR 42X05: Table/View 'DOMAIN_DATA' does not exist.
-- switch to first console, commit changes
select * from DOMAIN_DATA;
-- information is shown properly now after commit
-- after rollback, data is only shown for first commit
-- if not commited, nor autocommit set to on, then we only see what existed before the commit, or after a rollback.
-- play around with this on two consoles to get a sense of how this works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment