목록전체 글 (97)
썩구노트
다음은 테이블(purchaseT) 정보이다. 이 테이블은 날짜와시간대 별로 각 회원의 구매물품을 저장한다. 다음은 테이블을 생성하기 위한 DDL문이다. 주석은 '--' 다음에 반드시 한칸(' ')을 띄어쓰기하고 기술해주어야 한다.create table purchaseT ( idx int not null primary key auto_increment, -- 구매정보idx member_id int not null, -- 회원id product_id int not null, -- 상품id buydate datetime not null -- 거래일자 ); idxmember_id product_id buydate 1gildong orange 2011-01-30 01:34:37 2mildongapple 2011-..
mysql 한달전 where reg_date >= date_add(now(), interval -1 month) 하루전 where reg_date >= date_add(now(), interval -1 day) 한시간전 where reg_date >= date_add(now(), interval -1 hour) +이면 후가 되겠죠! 기타 날짜 조건 select date_format(D_time,"%Y-%m-%d") from 테이블명 select date_format(D_time,"%H:%i::%s") from 테이블명 D_time 오늘인거 가져오기 select D_time from 테이블명 where date_format(D_time,"%Y-%m-%d") = current_date; 등록된지 24시간이 ..
http://www.dhtmlx.com/