Hi team,
I'm working a bit on Oracle and I discovered a 'nice' function that analyzes a SQL statement and advises you to create an index or not to improve the execution time (see below).
I'd like to know if there are any equivalent stuff on Sybase? or is there a way to simulate indexes on a table to see the changes in the execution plan?
Thanks
Sample of Oracle QUICK_TUNE package
SQL>
EXEC
DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR,
'QUICK_TUNE'
,
'SELECT * FROM employees WHERE UPPER(last_name)='
'DE HAAN'
''
);
SQL>
SET
LONG 100000
SQL>
SET
PAGESIZE 0
SQL>
SET
HEADING
OFF
SQL>
SELECT
DBMS_ADVISOR.GET_TASK_SCRIPT(
'QUICK_TUNE'
)
FROM
dual;
Rem SQL Access Advisor: Version 11.2.0.2.0 - Production
Rem
Rem Username: HR
Rem Task: QUICK_TUNE
Rem Execution
date
:
Rem
CREATE
INDEX
"HR"
.
"EMPLOYEES_IDX$$_00870000"
ON
"HR"
.
"EMPLOYEES"
(
UPPER
(
"LAST_NAME"
))
COMPUTE
STATISTICS
;