How can I model a column in a new table after a column in an existing table? [message #682641] |
Wed, 04 November 2020 12:45  |
 |
Darth Waiter
Messages: 41 Registered: October 2020
|
Member |
|
|
Hi all:
Most of my background is on MS SQL, and I know very basics of Oracle. When I create CRUD stored procedures, I use the underlying table column's type for parameters all the time.
v_col1 IN schema.table.column%TYPE
Can I do the same for some but not for all columns, when I create tables that depend on an existing table? For instance, if I have
create table a(a varchar2(10));
How can I
create table b(b ...%type);
where type would be derived from a.a and be the same varchar2(10) but without declaring it explicitly?
Thank you!
Al
[Updated on: Wed, 04 November 2020 12:49] Report message to a moderator
|
|
|
|
|
|
|