Question

i can duplicate table like this:

create table abc_new as select * from abc

can i duplicate the table and new Columns like birthdate as date in the same sentences?

Was it helpful?

Solution

it add date

create table abc_new as select *,sysdate as someDate from abc

if i type number it add number..

OTHER TIPS

You can create the view of the table in Sql . You cant create the duplicate table in Sql like Mysql.

for view:

CREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top