You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-11-03 17:13:17 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			602 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			602 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
USE tpch1;
 | 
						|
DROP TABLE IF EXISTS test.mcol830a;
 | 
						|
DROP TABLE IF EXISTS test.mcol830b;
 | 
						|
CREATE TABLE test.mcol830a (
 | 
						|
`c1` int(11) DEFAULT NULL,
 | 
						|
`c2` varchar(64) DEFAULT NULL
 | 
						|
) ENGINE=Columnstore DEFAULT CHARSET=utf8;
 | 
						|
CREATE TABLE test.mcol830b (
 | 
						|
`c1` int(11) DEFAULT NULL,
 | 
						|
`c2` varchar(64) DEFAULT NULL
 | 
						|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
 | 
						|
insert into test.mcol830a values(1, 'cs测试');
 | 
						|
insert into test.mcol830b values(2, 'myisam测试');
 | 
						|
select * from test.mcol830a union select * from test.mcol830b order by c1 desc;
 | 
						|
c1	c2
 | 
						|
2	myisam测试
 | 
						|
1	cs测试
 | 
						|
DROP TABLE test.mcol830a;
 | 
						|
DROP TABLE test.mcol830b;
 |