sql语句经验
1:拼接字段模糊查询
where aaa(字段) not like CONCAT(DATE_FORMAT(new(),"%Y-%m-%d"),'%完成%');
2:备份表中数据导另一张表
CREATE TABLE SPPI_A AS SELECT * FROM SPPI_A_AA WHERE WORK_DATE='2019-07-26';
3:插入数据到某张表
INSERT INTO SPPI_A ASSS SELECT * FROM SPPI_A AS;
1:拼接字段模糊查询
where aaa(字段) not like CONCAT(DATE_FORMAT(new(),"%Y-%m-%d"),'%完成%');
2:备份表中数据导另一张表
CREATE TABLE SPPI_A AS SELECT * FROM SPPI_A_AA WHERE WORK_DATE='2019-07-26';
3:插入数据到某张表
INSERT INTO SPPI_A ASSS SELECT * FROM SPPI_A AS;