I have been trying recently to change the default value of a column as described here. The solution I found there requires deleting the default constraint, which requires knowing the name of that constraint.
The problem I am having is that I do not know how to find out the constraint name in MariaDB. In the same post, these solutions were suggested:
SELECT NAME FROM sys.default_constraints WHERE parent_object_id = OBJECT_ID('dbo.MyTable');
sp_help MyTable
sp_helpconstraint MyTable
All of these produce syntax errors in MariaDB, since they all seem to be for MSSQL or MySQL.
So, what do I need to do to find out the constraint name?