Hi all,
I would like to know how to remove an index on a MySql MariaDatase table.
To create an index, the 'UNIQUE' clause is used. How to delete an index?
how to build compound index INDEX ON CLI_COD + STR(CLI_FAT,12,2) + DTOS(date())
TIA
Maurizio Menabue
MySql MariaDatase INDEX
Re: MySql MariaDatase INDEX
TO REMOVE
oCN:Execute("ALTER TABLE your_table DROP INDEX your_index")
TO CREATE
oCN:Execute("ALTER TABLE your_table ADD INDEX your_index(`field1`, `field2`)")
oCN:Execute("ALTER TABLE your_table DROP INDEX your_index")
TO CREATE
oCN:Execute("ALTER TABLE your_table ADD INDEX your_index(`field1`, `field2`)")
- mauri.menabue
- Posts: 157
- Joined: Thu Apr 17, 2008 2:38 pm
Re: MySql MariaDatase INDEX
Hi all
Thank Vilian
is also possible : oCN:Execute("ALTER TABLE your_table ADD INDEX your_index(`field1`, `My_function()`)")
Thank Vilian
is also possible : oCN:Execute("ALTER TABLE your_table ADD INDEX your_index(`field1`, `My_function()`)")