Right now, will find out about the transitory tables and the procedure to utilize it to store information incidentally.
At whatever point you have to have a transitory table from your unique table you should simply to make a brief table with your ideal fields. In the example beneath, we have utilized this procedure on our fake information.
Presently the principal thing we have to do is to, find what we will require in our impermanent table at that point execute a SQL question advising database to make a comparable transitory table.
This is valuable when we need a transitory extra room wherein we can store our information and can likewise recover it at whatever point we need to.
To utilize this caring capacity first we have to advise the database to make an impermanent table and afterwards it will carry on like a genuine table. At the point when we have our transitory table prepared, we will embed information into it. Embeddings information into it is the same as of ordinary tables.
This information that we have here can be utilized later as we will require it later on. There are minutes when we need to store information in specific information however we likewise need other information. Now we should have an extra room where we can store it for quite a while. This resembles sparing your information in a variable and afterwards utilizing it later.
Dummy Data for Test:
CREATE TEMPORARY TABLE OUREMPLOYEES ( employee_name VARCHAR(50) NOT NULL, address DECIMAL(name VARCHAR(50) NOT NULL, total_salary INT UNSIGNED NOT NULL DEFAULT 0 );
INSERT INTO OUREMPLOYEES (employee_name, address, total_salary) VALUES (Manu, Gwalior, 500000);
SELECT * FROM SALESSUMMARY;