i'd like to store into a mailbox table the folder, the message should be inside as an int. Like 0 is inbox, 1 is outbox, ...
Is there a way to make the result of the query give me back a result like 'INBOX' for the stored value of 0?
Greetings
i'd like to store into a mailbox table the folder, the message should be inside as an int. Like 0 is inbox, 1 is outbox, ...
Is there a way to make the result of the query give me back a result like 'INBOX' for the stored value of 0?
Greetings
select case message when 1 then 'INBOX' when 2 then 'OUTBOX' END from your table
Is this what you are looking for?
Refer this for more information