RROR 1221 (HY000): Incorrect usage of spatial/fulltext/hash index and explicit index orde 
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                 RROR 1221 (HY000): Incorrect usage of spatial/fulltext/hash index and explicit index orde  
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                錯誤判斷:
RROR 1221 (HY000): Incorrect usage of spatial/fulltext/hash index and explicit index orde類似這樣的錯誤是因為給索引提供了錯誤的附加條件,
?son表如下:
mysql> desc son; +-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | id | int | YES | MUL | NULL | | | name | char(20) | YES | | NULL | | | grade | tinyint | YES | | NULL | | | favourate | varchar(39) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+ 4 rows in set (0.00 sec)給son表增加一個fulltext索引,code如下:
?
mysql> create fulltext index son_index on son(name(10) asc); ERROR 1221 (HY000): Incorrect usage of spatial/fulltext/hash index and explicit index order結果引發錯誤,varchar類型不能指定asc
總結
以上是生活随笔為你收集整理的 RROR 1221 (HY000): Incorrect usage of spatial/fulltext/hash index and explicit index orde 的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: C++之vector容器初学(二)——插
 - 下一篇: linux命令chmod如果当前用户属于