karlomutschler
Programmer
good day,
I have separate sql-scripts to
drop mytable
create mytable with description of variables
insert data from other tables into mytable
grant select privileges to USER2
how do I combine these into one single sql-script?
if somecriteria (mytable exists)
then
drop table mytable
create table mytable (
var1 varchar2(8),
var2 varchar2(32)
)
insert into mytable (
var1,
var2
)
select a.source1
a.source
from othertable
where .....;
commit;
grant select on mytable to USER2;
Any help most welcome.
Kind regards
Karlo
I have separate sql-scripts to
drop mytable
create mytable with description of variables
insert data from other tables into mytable
grant select privileges to USER2
how do I combine these into one single sql-script?
if somecriteria (mytable exists)
then
drop table mytable
create table mytable (
var1 varchar2(8),
var2 varchar2(32)
)
insert into mytable (
var1,
var2
)
select a.source1
a.source
from othertable
where .....;
commit;
grant select on mytable to USER2;
Any help most welcome.
Kind regards
Karlo