Jump to content

string results as characters


Shuli

Recommended Posts

Hi,

How can I show string  results as characters in sql plus?

select*
from example a  
where a.insert_time>='12-dec19' and a.status=1 as 'Cars

 

I want that if 'status' field status result would show '1'  the the output  would show 'Cars'

and if the result would show '2' the the output  would show 'Bikes' instead of strings.

Best regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...