Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
gnanasekar
Starting Member
6 Posts |
Posted - 2011-08-17 : 07:11:34
|
| select ename,jobtitlefrom employee,jobwhere employee.empno=job.empno(+);THIS IS SQL STATEMENT.HOW CAN CREATE PROCEDURE FOR THISANDcursor c1 is select salary from employees;beginopen c1;fetch c1 into i;if c1% isopen then dbms_output.put_line('opened');elsedbms_output.put_line('closed');close c1;end;declarei varchar2;cursor c1 isselect salary from employees;beginloopopen c1;if c1%isopen thendbms_output.put_line('opened');elsedbms_output.put_line('closed');endifclose c1;end;THIS IS MY CURSOR PROGRAM HOW CAN I EXE WITH PROCEDUR HELP ME TO CREATE PROCEDURE FOR THIS TWO PROGRAMS.... |
|
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2011-08-17 : 07:33:02
|
| Are you working with Microsoft SQL Server as this is not T-SQL?If not, I think you might want to find a relevant forum for you DBMS.. |
 |
|
|
|
|
|