database - Padding with leading and trailing spaces all values of column in SQL -


for column in table, want add leading & trailing spaces values of column in 1 go. example, table employee(name varchar(5)). table having 5 characters each in row, on executing query should updated 7 characters each in row. infact leading & trailing spaces should padded values in column.

i need sql query.

select ' '||name||' ' employee 

if want update table

update employee set name = ' ' || name || ' ' 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -