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 |
Maximum how many triggers can we use in trigger and How to find out how many records it fetched.
What are the different types of sql commands?
What is the difference between join and natural join?
what is query cache in mysql? : Sql dba
Does truncate release storage space?
What is an ndf file?
How do I create a sql database?
declare v_count number(8,3); v_sal scott.emp.sal%type := '&P_sal'; cursor cur_name is select sal from scott.emp where sal between (v_sal-100) and (v_sal +1000); begin v_count :=nvl(sql%rowcount ,0); if v_count = 0 then dbms_output.put_line('no records are fetch in the given sal range'); else dbms_output.put_line('There is/are '||to_char(v_count)|| ' salaries are selected in the given range '); end if; end; in the above programm .....for any sal range ....always it shows the following message.. no records are fetch in the given sal range please find the mistake and share with me...with thansk and regards..sarao....
how to start mysql server? : Sql dba
What is sql basics?
what are date and time functions in mysql? : Sql dba
define different types of trigger. : Sql dba
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)