简体   繁体   中英

how to check whether a data exists in multiple mysql tables on different fields

I have two tables named A and B

table A- id1 id2 id3 id4

table B- id5 id6 id7 id8

I want to check whether a data exists in table A on field id1 or in table B on fields id6 or id7

Multiple options exist for sub-string search in MySQL

  • One often overlooked option: if you are using or have access to a database client, such as Navicat, you can use the Find in database ... search
  • There are other options as well as indicated in the see also links

See also

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM