-
SQL구문C++ Builder/예제소스 2019. 8. 13. 14:12
sSql.sprintf(L" DELETE FROM H_SENSORSTATUS "
L" WHERE COLLECT_DATETIME < DATE_ADD(NOW(), INTERVAL-3 DAY)"); // DATE_ADD(기준 날짜, INTERVAL) 시간 더하기.
// 현재날짜기준 3일이전 기록 삭제 sql
728x90'C++ Builder > 예제소스' 카테고리의 다른 글
FindComponent (0) 2019.04.29 fnFieldByName (0) 2019.04.26 ExportGridToExcel (0) 2019.04.18 윈도우 창 이동(BoderStyle = bsNone) (0) 2019.02.26 종료확인 (0) 2019.01.31 댓글