Can we add a column in a table using the datatype of a column from another table. NO PLSQL. just a normal SQL query
eg as below
*Table ABC has 3 columns
name varchar2(50)
id number
dob Date
Table XYZ has 2 columns
id number
phone_number number(10)*
Now i want to add another column in Table XYZ With same datatype as NAME of column ABC.
but the below command is not working
alter table XYZ ADD MOTHERS_NAME ABC.NAME%TYPE;