Welcome, Guest. Please Login
Algorithmic Trading Forum
 
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Advanced MySQL Trigger Help (Read 3161 times)
Ryan
Newbie
*
Offline

I like this forum!

Posts: 3

Advanced MySQL Trigger Help
10/15/10 at 00:40:23
 
I am working on setting up a mysql database to store all of my historical stock data. I want to organize it such that there is a table of contents table that contains the ticker, name, and date range of prices for each security in the database.  I also want this table to have a trigger that creates a new table each time a new row is inserted. This table name would be based on a the primary key of the new row and would be used to store the price data for the security listed in the row.

My proplem is that mysql does not allow triggers to create tables. When I try to create a trigger such as this I get the following error.

Error 1422: Explicit or implicit commit is not allowed in stored function or trigger.

Does anyone know a workaround for this limitation?
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print