10 lines
		
	
	
		
			316 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			316 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| USE test; 
 | |
| SET autocommit = 0; 
 | |
| CREATE TABLE IF NOT EXISTS myCity (a int, b char(20)); 
 | |
| INSERT INTO myCity VALUES (1, 'Milan'); 
 | |
| INSERT INTO myCity VALUES (2, 'London'); 
 | |
| COMMIT;
 | |
| DELETE FROM myCity; -- implicit transaction started
 | |
| SELECT COUNT(*) FROM myCity; -- read transaction's modifications from master
 | |
| COMMIT;
 | 
