How to check a value exists in which table in SQL? -


There are two tables with the same table, called table a and table b and both have column IDs. The value of 'ABC' is that I will check the ABC in which the table ID is present in the table? I need output as table name.

  select table 'name' (selection 1 to one id = 'ABC') Union Everyone's selection 'B' happens separately (selection 1 to B WHERE ID = 'ABC')  

DUAL is a type of placeholder that you choose If you do not have a table to choose from.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -