A Data Engineer is troubleshooting a SQL stored procedure that includes a transaction and rollback, using this code:
DROP TABLE A1;
CREATE OR REPLACE TABLE A1(i int);
BEGIN TRANSACTION;
INSERT INTO A1 VALUES (1), (2);
INSERT INTO A1 VALUES (3), (4);
CREATE OR REPLACE TABLE table2 (i VARCHAR);
INSERT INTO A1 VALUES (5), (6);
ROLLBACK;
How many rows does this code write to table A1?
Community Discussion
No comments yet. Be the first to start the discussion!
Community Discussion