Basta usar
substring_index()
duas vezes:SELECT substring_index(substring_index(licence_key, 'contract=', -1),
'issued=', 1)
FROM table;
substring_index()
duas vezes:SELECT substring_index(substring_index(licence_key, 'contract=', -1),
'issued=', 1)
FROM table;