GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

PL/SQL FAQ


PL/SQL FAQ

Questions: 155
Comments: 404
 PL/SQL FAQ Tags
 Showing Questions 71-80 of 155 Questions
<< Previous 4 5 6 7 [8] 9 10 11 12 13 Next >>
 Sponsored Links

 
 PL/SQL FAQ
Sorting Options :  

DECLARE A EMP.ENAME%TYPE; B EMP.SAL%TYPE;BEGIN UPDATE EMP SET SAL=SAL*1.1 WHERE EMPNO=&EMPNO; __________ ENAME, SAL INTO A, B FROM EMP;END;What should I write in that blank to get the details of just updated record???
Read Answers (1) | Asked by : Samatha

Latest Answer: HI ALL,try this..,create or replace procedure ddl_proc(tabname in varchar2)asv_cursor INTEGER;ddl_exe INTEGER;beginv_cursor:=Dbms_sql.open_cursor;Dbms_sql.Parse(v_cursor,' Create Table '||tabname||' (col1 number(2),col2 varchar2(5)) ',Dbms_sql.native);ddl_exe:=Dbms_sql.Execute(v_cursor);dbms_sql.close_cursor(v_cursor);end ...
Read Answers (2) | Asked by : madhug56

Hi,1. Iam looking for sample program for ref cursor. ref cursor can be associated with many select statements and we can use the ref cursor to return the multiple value from the procedure or function. 
Latest Answer: Hi,Let me answer your second questin first. Why ref cursor instead of %ROWTYPE.%ROWTYPE is used for fetches record/row of a single table.OR in case of columns of different tables then you have to create a RECORD and then used %ROWTYPE.But ...

Latest Answer: declarecursor cursor_name isselect col1,col2,col3from tab_name;ab_record cursor_name%rowtype;beginopen cursor_name;loopfetch ab_record into cursor_name;exit when cursor_name%notfound;insert into tab_name(col1,col2,col3)values(ab_record.col1,ab_record.col2,ab_record.col3);end ...
Read Answers (9) | Asked by : mandlakarna

Latest Answer:  declare cursor v_cursor is      select empno, empnm, empdept from emp where empdept = 10;begin      open v_cursor;      loop      fetch v_cursor ...
Read Answers (2) | Asked by : madhuk17

Latest Answer: An Oracle stored procedure is a program stored in an Oracle databaseStandalone procedures are the procedures stored in the oracle database and not enclosed in a package. ...
Read Answers (1) | Asked by : madhuk17

Latest Answer: Hey,Above Soln is not working with tables where data is like,COL1 ----------1511 *708111 *5511 *78--Here 11 Repeats 3 times fine...--Check d rowidselect rowid,col1 from nodup;ROWID                    COL1------------------ ----------AAAOV+AAAAAAAJ0AAA         ...

Hi,Can somebody please answer couple of my questions ASAP?1) How do you call a trigger on a table?2) What is the maximum number of data strings that can be returned through DBMS_OUTPUT?Much thanks!!
Read Answers (2) | Asked by : Lisa

What is the maximum number of data string can be returned from DBMS_OUTPUT? andHow do you call a trigger from a table?
Read Answers (2) | Asked by : Lisa

Hi all I wrote a procedure to send email via plsql procedure, It was compiled sucessfully but not working ....here is the code (actuly i added the dbms output like step1 ,step 2 to see in which step the control is going on )create or replace PROCEDURE send_test_messageIS mailhost VARCHAR2(64) := 'mail.cmcltd.com'; sender VARCHAR2(64) := 'akash.sharma@cmcltd.com'; recipient VARCHAR2(64) := 'lalit.mohan@cmcltd.com'; mail_conn utl_smtp.connection;BEGIN
Tags : DBMS

View page << Previous 4 5 6 7 [8] 9 10 11 12 13 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape