Home
About
Contact
Home
Asp.Net
c#
Interview Q & A
.NET Error
Google Maps
Breaking News
Editors Picks
Tuesday, December 6, 2011
execute stored procedure in oracle without parameter
declare strlo varchar2(2000);
BEGIN
PRC_CREATETABLE('CHL_PRIM_SALES_KPI',strlo);
DBMS_OUTPUT.put_line(strlo);
end;
Read more ...
Share !
Tweet
drop table if exists in oracle sql
declare tbl_exist number;
BEGIN
select count(*) into tbl_exist from user_tables where Upper(table_name)=Upper('test1');
DBMS_OUTPUT.put_line(tbl_exist);
if tbl_exist = 1 then
EXECUTE IMMEDIATE 'drop table test1';
end if;
end;
Read more ...
Share !
Tweet
create table from another table in stored procedure in oracle
create table from another table in stored procedure in oracle
CREATE OR REPLACE PROCEDURE PRC_CREATETABLE is
circlecode varchar2(20);
cursor
c1 is select distinct circle_code from circle_master;
BEGIN
open c1;
loop
fetch c1 into circlecode;
EXIT WHEN c1%NOTFOUND;
EXECUTE IMMEDIATE 'CREATE TABLE
tablename AS (SELECT *
refencetablename WHERE
circle_code='''||circlecode||''') '
;
end loop;
close c1;
END PRC_CREATETABLE;
Read more ...
Share !
Tweet
Subscribe to:
Posts ( Atom )
Topics
.NET Error
AJAX and Java Script
ASP.NET
Asp.net Interview Question And Answer
aspx page to pdf
C#
C# Interview Question And Answer
C#.Oracle
CSS
Data List
Dynamic Controls
Excel
Google Map Api
Grid View
HINDI
IIS
Microsoft Certifications
MS Chart
my sql
OOPS
Oracle
Security
Send Email
Send SMS
SQL SERVER
State management
Webconfig
Windows
Windows Services
WPF
XML
Contact Us
Name
Email
*
Message
*