我将开始在 phpmyadmin 中使用 mysql。
我的桌子:
表格1:
primary key = id1;
cash1 = thing I want to pick from that table;
表2:
primary key = id2;
cash2 = thing I want to pick from that table;
表3:
foreign key1 = id1;
foreign key2 = id2;
cash3 = thing I want to make;
所以,我想做:
Update (or insert into?) cash3 = cash1*cash2/100 when UPDATE ON cash1 or cash2.
尝试了很多东西,似乎没有任何工作......