view view different view2
Returns a new view with rows that are the set exclusive-or of the rows in view with the rows in view2. That is, the result view will contain all rows that are in view and all rows that are in view2, except that it will not contain any rows that are both view and view2.
This command assumes that neither view nor view2 have any duplicate rows. In that case, then the returned view will also have no duplicate rows.
These two scripts:
# ONE set v [$view view union $view2] # TWO set tmp [$view view intersect $view2] set tmp2 [$view view different $view2] set v [$tmp view concat $tmp2]
both produce the same set of rows in v
See [view view unique]