⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 distinctfiltering.out

📁 derby database source code.good for you.
💻 OUT
📖 第 1 页 / 共 4 页
字号:
--------------------------------------------------1                                                 ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	select distinct c2 from t1 where c3 = '1' and c1 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Sort ResultSet:Number of opens = 1Rows input = 2Rows returned = 1Eliminate duplicates = trueIn sorted order = true	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0Source result set:	Project-Restrict ResultSet (4):	Number of opens = 1	Rows seen = 2	Rows filtered = 0	restriction = false	projection = true		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0		restriction time (milliseconds) = 0		projection time (milliseconds) = 0	Source result set:		Project-Restrict ResultSet (3):		Number of opens = 1		Rows seen = 2		Rows filtered = 0		restriction = false		projection = true			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0			restriction time (milliseconds) = 0			projection time (milliseconds) = 0		Source result set:			Index Scan ResultSet for T1 using index T13 at read committed isolation level using instantaneous share row locking chosen by the optimizer			Number of opens = 1			Rows seen = 2			Rows filtered = 0			Fetch Size = 16				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				next time in milliseconds/row = 0			scan information: 				Bit set of columns fetched={0, 1, 2}				Number of columns fetched=3				Number of deleted rows visited=0				Number of pages visited=1				Number of rows qualified=2				Number of rows visited=3				Scan type=btree				Tree height=1				start position: 	>= on first 2 column(s).	Ordered null semantics on the following columns: 				stop position: 	> on first 2 column(s).	Ordered null semantics on the following columns: 				qualifiers:Noneij> -- ordered, but no where clause - uses distinct scan-- the following approach is used because the ordering of the results from-- the distinct is not guaranteed (it varies depending on the JVM hash -- implementation), but adding an order by to the query may-- change how we execute the distinct and we want to test the code path without-- the order by.  By adding the temp table, we can maintain a single master-- file for all JVM's.create table temp_result (result_column int);0 rows inserted/updated/deletedij> insert into temp_result     (select distinct c1 from t1);4 rows inserted/updated/deletedij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	insert into temp_result     (select distinct c1 from t1)Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Insert ResultSet using row locking:deferred: falseinsert mode: normalRows inserted = 4Indexes updated = 0Execute Time = 0	Distinct Scan ResultSet for T1 using index T11 at read committed isolation level using instantaneous share row locking: 	Number of opens = 1	Hash table size = 4	Distinct column is column number 0	Rows seen = 4	Rows filtered = 0		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0		next time in milliseconds/row = 0	scan information: 		Bit set of columns fetched={0}		Number of columns fetched=1		Number of deleted rows visited=0		Number of pages visited=1		Number of rows qualified=9		Number of rows visited=9		Scan type=btree		Tree height=1		start position:	None		stop position:	None		scan qualifiers:None		next qualifiers:Noneij> select * from temp_result order by result_column;RESULT_COL&-----------1          2          3          NULL       ij> drop table temp_result;0 rows inserted/updated/deletedij> -- test distinct with an order byselect distinct c1 from t1 order by c1;C1         -----------1          2          3          NULL       ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	-- test distinct with an order byselect distinct c1 from t1 order by c1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Sort ResultSet:Number of opens = 1Rows input = 9Rows returned = 4Eliminate duplicates = trueIn sorted order = true	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0Source result set:	Index Scan ResultSet for T1 using index T11 at read committed isolation level using instantaneous share row locking chosen by the optimizer	Number of opens = 1	Rows seen = 9	Rows filtered = 0	Fetch Size = 16		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0		next time in milliseconds/row = 0	scan information: 		Bit set of columns fetched={0}		Number of columns fetched=1		Number of deleted rows visited=0		Number of pages visited=1		Number of rows qualified=9		Number of rows visited=9		Scan type=btree		Tree height=1		start position: 	None		stop position: 	None		qualifiers:Noneij> -- clean updrop table t1;0 rows inserted/updated/deletedij> drop table t2;0 rows inserted/updated/deletedij> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -