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 |
Difference between inline query and stored procedure?
how to rename an existing table in mysql? : Sql dba
What is sharding in sql?
how view used for security purposes?
Source is Sales Table: Sno Prod Sales Sales_Amount 1 A 10 2000 2 A 20 1000 3 C 10 3000 4 D 30 4000 5 A 20 1000 Target : Sales_Count T_Sales_Amt Sales_Count(A) T_Sales_Amt(A) 90 11000 50 4000 In single query, pls tell me.
I have a small PL/SQL Block assume in this way begin select * from emp where empno=100; exception when others then <Some Messages> when no_data_found then <Some Messages> when too_many_rows then <Some Messages> end; The question which he asked was whether this block will get executed normally or it will throw error ? If errored out then what is the reason for the error ? Could anybody please help me ? Regards Nakul Venkataraman
What is pl sql variable?
What is break?
Can we join same table in sql?
What is consistency?
What are different types of joins ?
What is memory optimized table?
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)