|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
alter table
hi..i'm using the oracle db. I have some sql query problems here.
i'd like to drop the ACPC_DTTMISS column here. I've try the sql but failed. Can someone give me the solution? Quote:
And, I also would like to remove the primary key of ACPC_ISSNO. How to do that? Thank you! |
|
#2
|
|||
|
|||
|
Change the Compatible parameter in init.ora to 8.1.0x
and restart the database ...
__________________
El éxito consiste en una serie de pequeñas victorias día a día MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html Last edited by victorpendleton : January 13th, 2004 at 08:46 AM. |
|
#3
|
|||
|
|||
|
Dropping of primary key is very simple, if you know the constraint name of primary key then use the follwoing example:
ALTER TABLE dept DROP CONSTRAINT pk_dept CASCADE / If you are not sure about constraint name then use the follwoing example: ALTER TABLE dept DROP PRIMARY KEY CASCADE / If column dropping functionality is not available in your installed version of oracle then you can drop it by simple method: For example i want to drop the location column of DEPT table: CREATE TABLE dept2 AS SELECT deptno,dname from dept / now drop the DEPT table: DROP TABLE dept / create table DEPT again: CREATE TABLE dept AS SELECT * from dept2 / |
|
#4
|
|||
|
|||
|
Quote:
to drop a column from table use the command ' alter table [tablename] drop column [column_name']. this should work. all the best. |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > alter table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|