Does the following in MySQL:
alter table TABLE_A
ADD CONSTRAINT fk_id (id) REFERENCES TABLE_B(id)
ON DELETE CASCADE ON UPDATE CASCADE;
do the same as
alter table TABLE_A
ADD FOREIGN KEY (id) REFERENCES TABLE_B(id);
except that it also adds a BTREE index on the relationship? Or do they complement each other?