I have 2 tables in my database.
- Customers_Details
- Transaction
Both tables have a date
column. I want to change the date format from YYYY-MM-DD
to DD-MM-YYYY
permanently for both tables.
Can i do it in one query or do I have to write separate query for each table?
The query which I have written is not changing the format of date permanently.
select
[customer_ID], [Gender], [Area_code],
convert(varchar, dob, 105) as DOB
from
[dbo].[customer_details]