sqlite if not exists应用实例

INSERT or replace INTO  [main].[RecordInfo]([WorkID],[bArtificialAttendance],[fThreshold],[Attendance_Time],[PicPath])
       select '012','1','60.00','2015-11-25 11:59:08.000','123' where not exists (SELECT [Attendance_Time] FROM  [main].[RecordInfo] WHERE [WorkID] = '012'  AND [Attendance_Time] = '2015-11-25 11:59:08.000');

 

posted @ 2015-11-27 10:24  QQ76211822  阅读(2539)  评论(0编辑  收藏  举报