@kadin
To insert a date (12-dec-2020) from Excel to MySQL, you can follow these steps:
- Open the Excel spreadsheet and locate the cell containing the date (12-dec-2020).
- Format the date cell in Excel to match the MySQL date format. In this case, you can select the cell and change its format to "dd-mmm-yyyy". This will display the date in the desired format.
- Save the Excel file.
- Open MySQL Workbench or any other MySQL client of your choice.
- Connect to your MySQL database using appropriate credentials.
- Create a new table or open an existing table where you want to insert the date.
- Write an SQL INSERT query to insert the date into the table. The query should include the column name and the formatted date value.
INSERT INTO your_table_name (date_column_name) VALUES ('2020-12-12');
Note: MySQL date format follows the "YYYY-MM-DD" pattern.
- Execute the INSERT query to insert the date into the table.
Now, the date (12-dec-2020) from Excel should be successfully inserted into the MySQL database table.