Delia499 发布于94月前 1答/1884阅
//定时器中的代码
protected void process(JobExecutionContext context) {
String sql = "insert into wlk.abcc(org_id, mobile) select c.org_id as org_id , c.mobile as mobile
from wlk.t_user_contact c ";
Db.update(sql);
}
//这里wlk是我自定义的数据库 错误提示是: Table 'wlk.abcc' doesn't exist
String sql = "insert into abcc(org_id, mobile) select c.org_id as org_id , c.mobile as mobile
from t_user_contact c ";
//将数据库去掉直接写表名 错误提示是 : Table 'demo.abcc' doesn't exist