查詢 Ratecard ID
mysql> SELECT id,tariffname FROM cc_tariffplan; +----+----------------+ | id | tariffname | +----+----------------+ | 1 | callwithus std | +----+----------------+ 1 row in set (0.00 sec)
使 sellrate 等於 buyrate
註:rateinitial 就是 sellrate
mysql> UPDATE cc_ratecard SET buyrate = rateinitial WHERE idtariffplan = 1;
調整所有 sellrate 加上 20%
mysql> UPDATE cc_ratecard SET rateinitial = (rateinitial*1.2) WHERE idtariffplan = 1;