2

我想问当我输入天、月、年和每周的名称时如何设置日期。这是我的例子

case when description  = 'weekly' 
        then weekly else 
case when description  = 'monthy' 
        then month else 
case when description  = 'year' 
        then year else 
case when description  = 'days' 
        then days else 
        entered 
end &DATE_D
4

1 回答 1

1

你的案例陈述对我来说看起来不太正确。您是否在寻找:

case description  
    when 'weekly' then weekly  
    when 'monthy' then month 
    when 'year' then year 
    when 'days' then days 
    else entered 
end DATE_D
于 2012-04-04T12:12:45.753 回答