CASE WHEN ... THEN


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. CASE
  2. WHEN @RoleTypeId = 0 THEN @RoleTypeName
  3. WHEN @RoleTypeId = 1 THEN 'Public Anonymous User'
  4. WHEN @RoleTypeId = 2 THEN 'System Administrator'
  5. END

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.