A column’s datatype defines what kind of information can be stored in a column. Some datatypes such as TEXT or Image cannot be used in an index because servers will not allow indexes on these types of data.
For more information, see Indexes, Creating a Unique Index, and Defining a Primary Key.