부득이 하게 TIMESTAMP 형을 사용하여 테이블을 생성하였으나 검색쪽에 쓸려니 불편 하여서
컬럼전체에 있는 TIMESTAMP 형을 DATE 형으로 바꾸려고 합니다.
DATE 형으로 형변환 하는 과정을 찾을수가 없네요....
현재 테이블에 있는 TIMESTAMP 형을 DATE 형으로 UPDATE 하는 방법을 알고 싶습니다.
column type변환인가요?
1. create table test as select to_timestamp(sysdate) a from dual;2. select * from test;3. create table test_2 as select to_date(to_char(a,'yyyymmddhh24miss'),'yyyymmddhh24miss') a from test;4. truncate table test;5. alter table test modify a date;6. insert into test select * from test_2;7. select * from test;8. drop table test_2;