Computer Science, asked by abhishek9204, 1 year ago

How to insert date object in MySQL using Python?

Answers

Answered by beautygirll56
1

To insert a date in a MySQL database, you need to have a column of Type date or datetime in your table. Once you have that, you'll need to convert your date in a string format before inserting it to your database. To do this, you can use the datetime module's strftime formatting function.


beautygirll56: yeah
maddy0507: ohh nice
maddy0507: all the best ✌️✌️
beautygirll56: thanks
maddy0507: where do you live??
maddy0507: ???
beautygirll56: Delhi
maddy0507: ohh
maddy0507: Great
maddy0507: heyyy
Similar questions