Mahendra Jella
Mahendra Jella

Reputation: 5596

how to store retrieved data to temporary table with mysql

I have executed one query and I want to store that result set into a temporary table and again I want to re filter the data from temporary table. How can I do this with mysql. Any suggestions please.

Upvotes: 0

Views: 966

Answers (1)

Barmar
Barmar

Reputation: 782498

CREATE TEMPORARY TABLE temp_tbl
SELECT whatever
FROM wherever
WHERE ...

Upvotes: 2

Related Questions