View Single Post
Old 11-26-2007, 09:04 AM   #6 (permalink)
DragonBe
The Wanderer
PHP Guru Advanced Programmer Zend Certified 
 
DragonBe's Avatar
 
Join Date: Nov 2007
Location: according to my wife: on the Net
Posts: 19
Thanks: 0
DragonBe is on a distinguished road
Default

Hi there,

If you know your way around MySQL, you can create an index on a part of a column so you can actually index the first three or four characters (do mind yourself you cannot make this an unique index)

The statement shown here creates an index using the first 4 characters of the name column:

CREATE INDEX part_of_name ON customer (name(4));

Ref: http://dev.mysql.com/doc/refman/5.1/...ate-index.html

Cheers,

DragonBe
Send a message via ICQ to DragonBe Send a message via Skype™ to DragonBe
DragonBe is offline  
Reply With Quote