sql can i substitute

Поиск
Список
Период
Сортировка
hi

table:

name varchar(10)
fruit integer

i want to write an sql statement like this:

select fruit from table

which should return 'good' if fruit = 1 and 'bad' if fruit =2 and 'rotten' if 
fruit =3

can it be done?

kg


В списке pgsql-sql по дате отправления:

Предыдущее
От: Marcus Claesson
Дата:
Сообщение: can't get the order I want after inserting new rows
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: [despammed] sql can i substitute