var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Derived Attributes in MySQL
Does anyone know how to go about specifying derived attributes in MySQL?
I have a table where one attribute is a result of multiplying two other attributes (for example, totalPrice derived from price * unitPrice).
Is there a way of doing this apart from generating the result on the fly by a script? Thanks in advance for any replies,
SELECT row * row FROM table;
If you need to specify a row, use a WHERE clause.
heh... sorry COL * COL not, ROW * ROW (that makes no sense :P)