i have a table with column app_date (data type is text).i want to convert it to different format.Below are the examples
app_date
Sep-17
Jan-18
Jun-16
i want to convert it as
new_app_date
Sep2017
Jan2018
Jun2016
Use replace():
update my_table
set app_date = replace(app_date, '-', '20')
returning app_date
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.