简体   繁体   中英

temp tables & web application

I'm trying to develop a web application for work, using PHP, MySQL and jQuery.

The main aim of the application is to store information about the work we do for our customer, so that we can give them detailed reports at the end of the year.

an example of what I'm trying to accomplish:

  • a report would be created, using a customers details
  • entries would be added to this report documenting the work that has been carried out.
  • then both, report & entries would be inserted into there actual tables

I'm wanting to use temp tables to store the information so that I can use it between pages but looking to see if this is the best way of accomplishing this.

Thanks

D

Temporary tables are deleted automatically when the connection to the database is closed. In PHP, this is usually done after each page request. Use normal (ie non-temporary) tables to gather report data for all customers. Use foreign keys to link reports to customers and report entries to reports.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM