Can we write create command in the plsql block?if possible
how?
Answers were Sorted based on User's Feedback
Answer / umadevi
yeah the above answer is correct..
begin
execute immediate 'create table tablename(column_name
coloumn_type(coloumn_length))';
end;
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / sidh
Yes We can write a create command in a PL/SQL block using
dynamic SQL
eg Execute immediate 'create table tab_name....'
Is This Answer Correct ? | 8 Yes | 0 No |
How will you make performance better for application including front end and back
Dear All, Question for this Week Find out possible error(s) (either at compile time or at runtime) in the following PL/SQL block. State the reason(s) and correct the errors. Declare Cursor C1 is select ename, sal, comm from emp; Begin For i in C1 Loop If i.comm between 299 and 999 then Dbms_output.put_line(i.Ename || ‘ ** Good Commission’); Elsif i.comm > 999 then Dbms_output.put_line(i.Empno || ‘ ** Very Good Commission’); close C1; Else Dbms_output.put_line(i.Ename || ‘ ** ’ ||nvl(i.comm,‘O’)); End if; End Loop; End;
Why plvtab is considered as the easiest way to access the pl/sql table?
what is the difference between blob and text? : Sql dba
I have a CURSOR then why we need BULK COLLECT again?
What is t-sql? : Transact sql
What is a .db file?
What does (+) mean in sql joins?
What is use of term?
How can you fetch first 5 characters of the string?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
how to analyze tables with 'mysqlcheck'? : Sql dba