Difference between revisions of "EXPLAIN"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 25: Line 25:
 
EXPLAIN SELECT * FROM example
 
EXPLAIN SELECT * FROM example
 
sqlcnt=100
 
sqlcnt=100
EXPLAIN SELECT * FROM example WHERE start_date = date()
+
EXPLAIN SELECT * FROM example WHERE start_date < date()
 
Could not optimize WHERE condition
 
Could not optimize WHERE condition
sqlcnt=0
+
sqlcnt=100
 
EXPLAIN SELECT * FROM example WHERE account_no = '000'
 
EXPLAIN SELECT * FROM example WHERE account_no = '000'
 
Optimized using index tag 'ACCOUNT_NO'
 
Optimized using index tag 'ACCOUNT_NO'

Revision as of 15:21, 12 October 2009

Template:YLM to do

Class

Performance and Optimization


Purpose

Syntax

See Also

SELECT


Description

Example

EXPLAIN SELECT * FROM example
sqlcnt=100
EXPLAIN SELECT * FROM example WHERE start_date < date()
Could not optimize WHERE condition
sqlcnt=100
EXPLAIN SELECT * FROM example WHERE account_no = '000'
Optimized using index tag 'ACCOUNT_NO'
sqlcnt=99

Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer