Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はデータベースが初めてで、sqliteデータベースを使用しています。4つのテーブルの結合と結合後に取得したテーブルを取得し、元のテーブルを見つけたい行ごとに取得します。これを行う単純な方法はありますか?
このようにしてください:
SELECT 'person' AS tablename, * FROM person UNION SELECT 'customer' AS tablename, * FROM customer