Created
February 6, 2017 20:26
-
-
Save Jammink2/11568e39e09e31844e4079fc62624ae1 to your computer and use it in GitHub Desktop.
for Splice Machine Tutorial Video: Using Command Prompts for Transactions
This file contains 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
-- 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