You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-31 18:30:33 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			529 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			529 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| USE tpch1;
 | |
| drop table if exists `football_teams`;
 | |
| CREATE TABLE `football_teams` (
 | |
| `num` int(11) DEFAULT NULL,
 | |
| `name` varchar(32) DEFAULT NULL,
 | |
| `roster_size` int(11) DEFAULT NULL
 | |
| ) ENGINE=Columnstore;
 | |
| insert into football_teams VALUES (1,'Green Bay',53);
 | |
| insert into football_teams VALUES (2,'Chicago',53);
 | |
| insert into football_teams VALUES (3,'Detroit',53);
 | |
| insert into football_teams VALUES (4,'Minnesota',53);
 | |
| select * from (select distinct num from football_teams order by num limit 3) a;
 | |
| num
 | |
| 1
 | |
| 2
 | |
| 3
 | |
| drop table football_teams;
 |