Background Image
질의작성
2008.11.21 17:36

데이터 필드의 타입 변경하기

조회 수 18420 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
CUBRID의 도메인 변경방법은 아래와 같습니다.
순서에 맞게 해당 환경의 애트리뷰트(컬럼), 테이블 명을 적용하시기 바랍니다.

=== Help: Schema of a Class> ===

<Class Name>

dumy

<Attributes>
...
exam : character varying(300)

csql> alter table dumy rename exam as temp
csql> ;x

Current transaction has been committed.

1 command(s) successfully processed.

csql> alter table dumy add attribute exam string
csql> ;x

Current transaction has been committed.

1 command(s) successfully processed.

csql> update dumy set exam=cast(temp as string)
csql> ;x

23 rows updated.

Current transaction has been committed.

1 command(s) successfully processed.

csql> alter table dumy drop attribute temp
csql> ;x

Current transaction has been committed.

1 command(s) successfully processed.

csql> ;sc dumy

=== Help: Schema of a Class> ===

<Class Name>

dumy

<Attributes>
...
exam : string

Current transaction has been committed.

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
14 질의작성 CUBRID 2008에서 ' 사용하기. file seongjoon 2009.06.16 13315
13 질의작성 오라클 바이딩 변수와 큐브리드 인터프리터 변수를 사용한 경로 표현식 정만영 2009.06.09 13483
12 질의작성 LIKE 검색에서 INDEX_SCAN사용 하기 file janus 2009.04.17 21809
11 질의작성 스키마에서 한글 사용하는 방법 file seongjoon 2009.04.14 15362
10 질의작성 데이터 값 작은 따옴표(') 넣기 정만영 2009.03.20 23813
9 질의작성 테이블 데이터 복사 하기 정만영 2009.03.14 22302
8 질의작성 컬럼 사이즈 변경 방법 정만영 2009.03.14 24338
7 질의작성 다중 row를 하나의 column에 넣기 정만영 2009.03.13 20089
6 질의작성 요일 값을 반환 받을 수 있는 질의 형태 정만영 2009.03.13 17108
» 질의작성 데이터 필드의 타입 변경하기 admin 2008.11.21 18420
4 질의작성 예약어를 테이블명이나 컬럼명으로 사용시 admin 2008.11.21 37437
3 질의작성 중복된 데이터에 대하여 일련번호를 붙이는 방법 admin 2008.11.21 17363
2 질의작성 중복된 데이터를 1개만 남기고 지우는 방법 admin 2008.11.21 17307
1 질의작성 select 결과중 몇개만 가져오는 방법 admin 2008.11.21 19919
Board Pagination Prev 1 2 3 4 Next
/ 4

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales