Subject | Re: [firebird-support] Question select in Stored procs |
---|---|
Author | Christian Danner |
Post date | 2006-01-18T08:16:16Z |
Hallo Lukas!
Copy&Paste for every supported language will do it.
Christian
>> 4) UNIONThat's what Erik asked for.
>>
>> select
>> cursus_code as code,
>> cursus_descr_nl as descr
>> from cursustype
>> where (pk_cursustype = :type)
>> and (:language = 'nl')
>> union
>> select
>> cursus_code as code,
>> cursus_descr_en as descr
>> from cursustype
>> where (pk_cursustype = :type)
>> and (:language = 'en')
>
>but those will only work for two columns.
>If there are <n> columns you have to write a union statement for everySure, this is how UNION works. I supposed it was obvious that a simple
>column.
Copy&Paste for every supported language will do it.
Christian