我使用oracle 10 g。我如何創建一個有2列長的表格?
我有一張桌子,需要2列Long
類型。
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.
我在谷歌搜索,但找不到合適的解決方案。 爲什麼他們不允許LONG
的2列?
正在使用number
而不是列是一個好主意?
我怎麼能做到這一點?
在此先感謝。
如果您已經在修改Quartz表,您可能還想將VARCHAR更改爲VARCHAR2。他們的表格腳本有幾個問題。 – 2012-07-25 18:11:37