Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

update select sql

--the simplest way of doing this 
UPDATE
    table_to_update,
    table_info
SET
    table_to_update.col1 = table_info.col1,
    table_to_update.col2 = table_info.col2

WHERE
    table_to_update.ID = table_info.ID
Source by www.thecodeteacher.com #
 
PREVIOUS NEXT
Tagged: #update #select #sql
ADD COMMENT
Topic
Name
2+4 =