sql - Delete Last Character -
stringx varchar(30);
stringx
not column in table .
i have stringx = 'he teacher , '
how can delete last char ( , )?
you can use rtrim
that:
select rtrim(stringx, ', ') tabkename
also note have space before , after ,
, need both ,
, in
rtrim
call.
Comments
Post a Comment