Hello, there are two tables, you need to display all the fields of both tables, and the field with the name of the table from which the row is taken. I will try to explain visually:
table1: --------------------- | id | page | data1 | --------------------- teble2: ----------------------------- | id | page | data2 | data3 | ----------------------------- SELECT '@' FROM table1, table2 WHERE page=3 result: -------------------------------------------------- | tablename | id | page | data1 | data2 | data3 | -------------------------------------------------- | table1 | 3 | 3 | test | | | | table1 | 5 | 3 | t | | | | table2 | 2 | 3 | | g13 | others | | table2 | 3 | 3 | | a1 | false | --------------------------------------------------
What construction to use on site '@'?