Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

MySQL update with subquery

update Users set Valid = 0
where Id in (
  select Id from (
    select Id from Users where Id < 100
  ) as t
)
Source by www.inforbiro.com #
 
PREVIOUS NEXT
Tagged: #MySQL #update #subquery
ADD COMMENT
Topic
Name
7+8 =