I use something similar but thought I'd mention this 'bug' that can happen:when you INSERT '%wa_message' into 'data', bear in mind your typed message will replace %wa_message.if that typed message contains an apostrophe, your message won't send.why?t
insert or replace:如果不存在就插入,存在就更新insert or ignore:如果不存在就插入,存在就忽略只对UNIQUE约束的字段起作用.举例:建表:CREATE TABLE TEST(id BIGINT, name text, birthday datetime, PRIMARY KEY(id, name));或者CREATE TABLE TEST (id BIGINT, name text, birthday datetime, UNIQUE(id, name));插入