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 -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -