php 使用pdo對(duì)mysql數(shù)據(jù)庫(kù)增刪改查實(shí)例
3 回答

慕村225694
TA貢獻(xiàn)1880條經(jīng)驗(yàn) 獲得超4個(gè)贊
1 2 3 4 | $result = mysql_query("SELECT `id`, `Retail` FROM `table` WHERE `Retail` - `Cost` < 30"); while($row = mysql_fetch_array($result)) { mysql_query("UPDATE SET `Retail`='".$row['Retail'] + 20."' WHERE `id`='".$row['id']."';"); } |
添加回答
舉報(bào)
0/150
提交
取消