To reset optimizer statistics.
DROP OPTIMIZER STATISTICS
Anywhere.
Must have DBA authority.
None.
The DROP OPTIMIZER STATISTICS statement resets optimizer statistics. The SQL Anywhere optimizer maintains statistics as it evaluates queries and uses these statistics to make better decisions optimizing subsequent queries. These statistics are stored permanently in the database. The DROP OPTIMIZER STATISTICS statement resets these statistics to default values. This statement is most useful when first learning about the optimizer. It helps to better understand the process used by the optimizer.