Re: Standard syntax?
От | Tom Lane |
---|---|
Тема | Re: Standard syntax? |
Дата | |
Msg-id | 27090.971379146@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Standard syntax? ("Franz J Fortuny" <ffortuny@ivsol.com>) |
Список | pgsql-sql |
"Franz J Fortuny" <ffortuny@ivsol.com> writes: > I have been using (with success) this SQL statement in PostgreSQL: > select col1, > case when col2 = true then > col3 > else > col4 > end as colw, > colM > where .... etc. > The above syntax, however, does not work for Interbase (6.01). CASE expressions are specified in SQL92, but they're labeled as an "intermediate SQL" feature rather than an "entry SQL" feature. So I'm not surprised that some other DBMSes don't have them. Entry SQL is a pretty impoverished subset (no VARCHAR type, to take a random example), so nearly everyone implements at least some intermediate- and full-SQL features. But exactly which ones is highly variable. regards, tom lane
В списке pgsql-sql по дате отправления: