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 |
What is trigger and stored procedure in sql?
What are keys in sql?
Is primary key an index?
Do stored procedures prevent sql injection?
What is the use of sqldataadapter?
What are two virtual tables available during database trigger execution ?
Where the integrity constrints are stored in Data Dictionary?
How can you select unique records from a table?
Q1.all the depts which has more then 10 empls? Q2.all the dept which does not have any emply? Q3 all the emp which does not have any dept? Q4 get all the emply detais with the dept details it dept is exit otherwise any emp details? Q5 how to debugg the dynamic sql and packages?
How many types of privileges are available in sql?
What is difference between sql function and stored procedure?
why sql is used as interpreter frequently rather than a compile?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)