Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
@n1、@n2 という 2 つの数値があるとします。Max(@n1,@n2) のような 1 つの単純な式で、より大きな数値を取得したいとします。T-SQL の式の書き方
DECLARE @a int = 45, @b int = 40; SELECT IIF ( @a > @b, @a, @b ) AS Result;