Home » SQL & PL/SQL » SQL & PL/SQL » Problem while Modifying column data type
icon5.gif  Problem while Modifying column data type [message #623067] Thu, 04 September 2014 01:25 Go to next message
mastansky@gmail.com
Messages: 13
Registered: July 2013
Location: INDIA
Junior Member

I have two tables like Samp1(Parent Table) and Samp2 (Child table)


Parent Table :Samp1
column Datatype    Constraint
------------------------------
Id      Number(6)  Primary Key


Child table :Samp2
column Datatype    Constraint
------------------------------
Id      Number(6)  Foriegn Key


Then how to modify column data type Number to Varchar2(10) both parent and child table at a time, can I one share Your Ideas Please .


Lalit : Added code tags. From next time please do it yourself, read How to use [code] tags

You could simply do DESC table_name in SQL*Plus instead of typing the table description.

[Updated on: Thu, 04 September 2014 02:31] by Moderator

Report message to a moderator

Re: Problem while Modifying column data type [message #623077 is a reply to message #623067] Thu, 04 September 2014 01:49 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

First remove the constraint.

Please, take care where you post your question, this is NOT a backup/restore question but a SQL one.

icon14.gif  Re: Problem while Modifying column data type [message #623096 is a reply to message #623067] Thu, 04 September 2014 07:15 Go to previous message
mastansky@gmail.com
Messages: 13
Registered: July 2013
Location: INDIA
Junior Member

Once Again Thanks Alot Buddy
Previous Topic: Global variable
Next Topic: CHMOD FROM A PLSQL?
Goto Forum:
  


Current Time: Fri Apr 26 08:10:32 CDT 2024