mysql 操作记录

一些重要操作记录。

避免重复插入
INSERT INTO lhlh_emotion (word, freq, tag)
SELECT '{emotion}', 100, 'a'
from DUAL
where not exists(select word from lhlh_emotion where word='{emotion}');

posted on 2018-06-14 15:32  bingwork  阅读(120)  评论(0编辑  收藏  举报

导航