Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

update with join

   UPDATE
        first_table ft
        JOIN second_table st ON st.some_id = ft.some_id
        JOIN third_table tt  ON tt.some_id = st.some_id
        .....
    SET
        ft.some_column = some_value
    WHERE ft.some_column = 123456 AND st.some_column = 123456
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #join
ADD COMMENT
Topic
Name
7+4 =