오라클 10 g을 사용하고 있습니다.2 개의 긴 열이있는 테이블을 어떻게 만듭니 까?
Long
유형의 2 열을 필요로하는 테이블이 있습니다.
CREATE TABLE emp
(
id1 LONG NULL,
id2 LONG NULL,
//
// other columns.
);
이 쿼리를 실행할 때이 오류가 발생합니다.
Error report:
SQL Error: ORA-01754: a table may contain only one column of type LONG
01754. 00000 - "a table may contain only one column of type LONG"
*Cause: An attempt was made to add a LONG column to a table which already
had a LONG column. Note that even if the LONG column currently
in the table has already been marked unused, another LONG column
may not be added until the unused columns are dropped.
*Action: Remove the LONG column currently in the table by using the ALTER
TABLE command.
Google에서 검색했지만 적절한 해결책을 찾을 수 없습니다. 왜 그들은 LONG
의 2 개의 열을 허용하지 않습니까?
number
대신에 열을 사용하는 것이 좋습니다. ??
어떻게이 작업을 수행 할 수 있습니까?
미리 감사드립니다.
이미 Quartz 테이블을 수정중인 경우 VARCHAR를 VARCHAR2로 변경할 수도 있습니다. 테이블 스크립트에는 몇 가지 문제점이 있습니다. –