84669 人學習
152542 人學習
20005 人學習
5487 人學習
7821 人學習
359900 人學習
3350 人學習
180660 人學習
48569 人學習
18603 人學習
40936 人學習
1549 人學習
1183 人學習
32909 人學習
if(Comments::create($data)){ $this->success('評論發佈成功','index/index');} else { $this- >error('評論保存失敗','index/index');}
我在表中建立了唯一索引,想讓評論人只能發表一次評論,再次發送時對先前的評論更新插入。上面的程式碼,只能實作insert into 。請大神幫忙實現replace into。