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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -