This is mostly a technical blog with my learning at work.
Friday, November 1, 2013
Oracle append string to select query
Append in a select statement can be achieved via the || operator.
select 'Mr.' || name from employee e where e.sex = 'M'
select case when e.sex = 'M' then 'Mr.' else 'Ms.' end || name as salutation_name from employee e
No comments:
Post a Comment