CopyPastor

Detecting plagiarism made easy.

Score: 0.8044065716978791; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-02-20
by Gordon Linoff

Original Post

Original - Posted on 2009-05-20
by Joey



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You seem to want a correlated subquery:
update table1 t1 set col2 = (select . . . from . . . where . . . ? = t1.col1 -- your condition goes here . . . );

You can use a named block around the loops:
search: { for (Type type : types) { for (Type t : types2) { if (some condition) { // Do something and break... break search; } } } }

        
Present in both answers; Present only in the new answer; Present only in the old answer;