Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
After index creation

After index creation

2007-05-22       - By Daniel Castro

 Back
Hi,

I have some queries doing a SCAN. I identify then and I create a index.

For example:

explain SELECT  PSV.PSV_COD ,           PSV.PSV_APEL ,
PSV.PSV_TRAT ,           PSV.PSV_TIPO     FROM PSV      WHERE (
PSV.PSV_TIPO<> 'I' )  ORDER BY
PSV.PSV_APEL          ASC

Results:
DBA  PSV    TABLE SCAN                                    1019
DBA            RESULT IS NOT COPIED , COSTVALUE IS        1019

I created a index on PSV.PSV_TIPO <> 'I'  but the query is scanning the
table again.
After the index xreatino I have to do some other thing?

Best regards,

--
Daniel Castro - ?????
MSN: danielti@(protected)
Skype: danielti2005
ICQ : 316727989
Jabber: danielti
Linux User: 387864
AOL User: Danielti2005
Sola Scriptura, Sola Gratia, Sola Fide, Solus Christus, Soli Deo Gloria