Jump to content

string results as characters


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...