DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
give a column name to values generated from case statement in sql
SELECT *, CASE WHEN a = 'test' THEN 'yes' END as value FROM ( SELECT col1 as a FROM table )
PREVIOUS
NEXT
Tagged:
#give
#column
#values
#generated
#case
#statement
#sql
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit