calculated column or stored procedure or just php function needed ?

Posted by mcgrailm on Stack Overflow See other posts from Stack Overflow or by mcgrailm
Published on 2010-05-16T19:56:04Z Indexed on 2010/05/16 20:20 UTC
Read the original article Hit count: 249

I have an order table in MySQL database, having a field/column which stores the date timestamp of when the order was placed.

I need to calculate when the order must be shipped. I could probably figure out how to write a function to calculate the ship date and call that when ever needed but I think, not sure it may make more sense to have the shipdate as a calculated column.

That being said, I have never used a stored procedure or created a calculated field. The later I think would be best but again not sure. I used to make calculated field all the time in FMP but I've gotten away from that program.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about stored-procedures