How to avoid loss precision for datetime type in sqlalchemy?
Question:
I’m a newbie in python and I got this issue. I have a column in my database which has type is datetime and precision is 23 (Ex: 2022-08-22 11:18:00.000)
When I retrive data with sqlalchemy, it seem convert to python datetime (2022-08-22 11:18:00). How can I avoid this and get original data? I have no idea now
Thank you for reading my question
Answers:
Maybe there is a presentation issue – zeroed milliseconds are not show. Try with a different value.
I’m a newbie in python and I got this issue. I have a column in my database which has type is datetime and precision is 23 (Ex: 2022-08-22 11:18:00.000)
When I retrive data with sqlalchemy, it seem convert to python datetime (2022-08-22 11:18:00). How can I avoid this and get original data? I have no idea now
Thank you for reading my question
Maybe there is a presentation issue – zeroed milliseconds are not show. Try with a different value.