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
Post a Comment