Table T1 fields id name table T2 fields id name query data in T1 that name does not exist in T2?

Let me ask you a question. The name of T1 does not exist in T2. It doesn"t come around a bit. The name in T2 not in T1 is still not correct

.
Nov.25,2021
In

T1, name does not exist in T2: what exists in T2 is noncompliant data
SELECT * FROM T1 WHERE NAME NOT IN (SELECT NAME FROM T2)


that is, the union of T1 and T2 minus T2,
select t1.name from T1 left join T2 on t1.name=t2.name where t2.name is null;

  • Find a section of sql

    < table > < thead > < tr > < th > now the query result in mysql has the following columns. You want it to output "adv. ". Choose between the two, otherwise, or "how do you write this sql? < th > < tr > < thead > < tbody > < tr > < td > pid < td ...

    Aug.02,2021
  • How does mysql export a data table of 6 million records?

    how does 1.mysql export a data table of 6 million records? 2. I ve tried that direct export will overload the database. ...

    Jun.23,2022
Menu