Background Image
질의작성
2008.11.21 17:36

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

조회 수 18418 추천 수 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
번호 분류 제목 글쓴이 날짜 조회 수
19 질의작성 CUBRID DB 내의 auto_increment 값을 초기화 하자. 손승일 2009.10.28 29718
18 운영관리 큐브리드 사용포트 정리 3 정만영 2009.06.19 29744
17 마이그레이션 CUBRID 하위버젼에서 CUBRID2008로의 업그레이드 방법 1 남재우 2008.12.06 30153
16 운영관리 CUBRID 사용시 방화벽 설정 3 admin 2008.11.21 30980
15 응용개발 php에서 serialize/unserialize 사용 시 주의할 점 시난 2009.12.29 31624
14 기타 좀비 프로세스 일괄 삭제하기 janus 2009.12.12 32007
13 CUBRID 매니저 Java SP사용시 JNI_CreateJavaVM 에러메시지 해결 방법 file seongjoon 2009.07.15 32041
12 마이그레이션 MySQL의 limit 명령어 처리 1 admin 2008.11.21 32682
11 운영관리 CUBRID에서의 BLOB/CLOB 사용시 백업 및 복구에 대한 주의 점 cubebridge 2012.09.18 33156
10 응용개발 CUBRID AUTO_INCREMENT 컬럼 MySQL LAST_INSERT_ID() 대체 방법 손승일 2009.12.22 33233
9 응용개발 JDBC 사용시 SQL 로깅 - p6spy 사용 1 웁쓰 2009.07.01 35985
8 질의작성 예약어를 테이블명이나 컬럼명으로 사용시 admin 2008.11.21 37304
7 질의작성 데이터 존재하면 update, 존재하지 않으면 insert 방법(ON DUPLICATE KEY UPDATE) 손승일 2010.08.11 37990
6 마이그레이션 타 DBMS를 CUBRID로 마이그레이션 시 varchar,char 컬럼 사이즈 관련 손승일 2010.07.01 38012
5 응용개발 Weblogic 10.0 사용시 JDK 1.5를 사용한 JDBC 드라이버 사용시 주의사항. cubebridge 2012.02.22 51957
4 응용개발 WHERE 조건에서 다중 컬럼 IN절 처리 최적화 방법 (cubrid + ibatis) 1 이상신 2015.08.21 55065
3 응용개발 weblogic 8.1 에 CUBRID Connection Pool, DataSource 설정 방법 file 웁쓰 2009.07.01 66305
2 마이그레이션 CUBRID vs MySQL vs ORACLE SQL 타입별 비교 정만영 2013.07.12 69109
1 운영관리 csql 데이터 입력방법 정만영 2009.06.09 212695
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 Next
/ 14

Contact Cubrid

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