Jump to content

Trying to index..


malikah

Recommended Posts

Hi, I'm trying to set an index on 3 of my columns but get this error:

 

#1170 - BLOB/TEXT column 'requirements' used in key specification without a key length

 

The last column in the table is TEXT TYPE containing some large paragraphs. I'm pretty new to all this. Do I need to index all columns? Do I even need an index? How does it improve my database?

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/46536-trying-to-index/
Share on other sites

um, um not sure, but you cant index text types i think

 

also, only index a few fields, often the primary key is bext, and thats all i use

 

it speeds up searching, becauase it orders records by those index, and therefore search can go directly to the criteria, not search the entire database

Link to comment
https://forums.phpfreaks.com/topic/46536-trying-to-index/#findComment-226535
Share on other sites

um, um not sure, but you cant index text types i think

 

also, only index a few fields, often the primary key is bext, and thats all i use

 

it speeds up searching, becauase it orders records by those index, and therefore search can go directly to the criteria, not search the entire database

 

Hmm.. But what if I was doing this:

 

"SELECT abc, def, ghi FROM table1, table2...."

 

In other words, I'm selecting columns from the middle of the table that aren't primary or indexed?

Link to comment
https://forums.phpfreaks.com/topic/46536-trying-to-index/#findComment-226544
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.