skip to Main Content

MySQL subtract bigint value as year

I have a MySQL database which holds one column years_valid_for as bigint and another column completion_date as datetime(6). I have to subtract bigint columns number as years. e.g. years_valid_for is 4 and completion_date is 2023-06-07. I have to subtract 4…

VIEW QUESTION
Back To Top
Search