I have a MySQL database with ~300 values. The data is being inserted through a Java app, but I can't change anything there. The values that I am getting are:
|id|user|datetime|weight|
In that order. When I get the values from the database using python I get this (an example row):
(1, 'User', datetime.datetime(2019, 7, 19, 23, 48, 38), Decimal('159.8'))
I want to get the id, user and date(in yyyy-MM-dd format), and get the decimal, but I want the row to look like this:
(310, 'User', '2019-07-19', '159.8')
I have no idea what to do, or where to start. How can I get the values to change?