LoginSignup
5
5

More than 5 years have passed since last update.

Sql serverのSelect文でIF文 (は、つかえない)

Last updated at Posted at 2013-03-13

使えないから こんな感じにするとできた。

this
SELECT case when max([NUM]) is NULL then 0 else max([NUM]) + 1 end as NUM
  FROM [hoge].[huge].[fuge]
  where ID='99'

書いてあった場所
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1250933162

5
5
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5