terrydiederich2
1/10/2019 - 2:56 PM

Temp Tables

Using Temp Tables in a Stored Procedure

 CREATE TEMPORARY TABLE IF NOT EXISTS tmpBOMItems (
    id int,
    BOMID int,
    BOMType char(1),
    BOMTypeID int
  );

  DELETE FROM tmpBOMItems;
  
  -- Do stuff
  
  DROP TEMPORARY TABLE IF EXISTS tmpBOMItems;