CREATE TABLE Cart (
ID bigint(20) NOT NULL auto_increment ,
Field1 varchar (5) ,
Field2 varchar (5) ,
Field3 varchar (5) ,
KEY `ID` (`ID`)
)And code to input data into the table:
INSERT INTO cart ( Field1, Field2, Field3 ) VALUES ( '1', '1', '2')
How do I make "Field3" a calculation, which equals 2 if fields 1 & 2 where values set to "1"? Any pointers in the right direction would be sincerely appreciated.
Aloha,
Daryl Hansen
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
