Answers for "find and replace column names in sql server dynamically"

SQL
0

how to change the column name in sql

ALTER TABLE table_name
CHANGE COLUMN old_name TO new_name;
Posted by: Guest on March-17-2021
1

sql change column name based on value

SELECT CASE lower(col1)
	WHEN 'agree' THEN 'Ok'
    ELSE
        CASE 
            WHEN col2 = 1 THEN 'Ko'
            ELSE 'Maybe'
        END
END AS my_result
FROM table_name;
Posted by: Guest on July-04-2021

Code answers related to "find and replace column names in sql server dynamically"

Code answers related to "SQL"

Browse Popular Code Answers by Language