Search notes:

SQL Server - T-SQL / expressions - case

declare  @num int = 3;

select
  case @num
      when 1 then 'one'
	  when 2 then 'two'
	  when 3 then 'three'
	  when 4 then 'four'
	  when 5 then 'five'
	  else        '?'
  end;
Github repository about-MSSQL, path: /t-sql/expressions/case/int-to-varchar.sql

See also

T-SQL

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759323980, '216.73.216.88', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/T-SQL/expressions/case/index(47): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78