Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

duplicate a column in sql

ALTER TABLE Table1
ADD SubCategory2 {Type of subcategory 1} {NULL|NOT NULL} 
UPDATE Table1 SET SubCategory2 = SubCategory;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #duplicate #column #sql
ADD COMMENT
Topic
Name
5+4 =