Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlite3 update select

UPDATE 
      software
SET purchprice = (SELECT purchprice
                  FROM softwarecost
                  WHERE id = software.id) 
where EXISTS (SELECT purchprice
                  FROM softwarecost
                  WHERE id = software.id)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #select
ADD COMMENT
Topic
Name
7+5 =