Re: Standard syntax?
От | Jie Liang |
---|---|
Тема | Re: Standard syntax? |
Дата | |
Msg-id | 39E600B9.F484679@ipinc.com обсуждение исходный текст |
Ответ на | Standard syntax? ("Franz J Fortuny" <ffortuny@ivsol.com>) |
Список | pgsql-sql |
Hi, This is not SQL92, I believe it's an extention of Pg , Oracle uses 'decode' to implement if-then elsif then-else structure. Franz J Fortuny wrote: > 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). For those who > have had experience in other SQL servers, is this a "standard" or ANSI 9X > compatible syntax or should I refrain from such syntax if I want my > statements to be transportable from SQL Server to SQL Server? > > Best regards, > > Franz Fortuny -- Jie LIANG Internet Products Inc. 10350 Science Center Drive Suite 100, San Diego, CA 92121 Office:(858)320-4873 jliang@ipinc.com www.ipinc.com
В списке pgsql-sql по дате отправления: