Click here to Skip to main content
15,913,055 members
Home / Discussions / Database
   

Database

 
QuestionHow to get all column name in database using CDatabase? Pin
Le@rner13-Nov-11 23:16
Le@rner13-Nov-11 23:16 
AnswerRe: How to get all column name in database using CDatabase? Pin
Blue_Boy14-Nov-11 1:44
Blue_Boy14-Nov-11 1:44 
GeneralRe: How to get all column name in database using CDatabase? Pin
Le@rner14-Nov-11 17:30
Le@rner14-Nov-11 17:30 
AnswerRe: How to get all column name in database using CDatabase? Pin
Mycroft Holmes14-Nov-11 12:58
professionalMycroft Holmes14-Nov-11 12:58 
Questionerror @ Functions Pin
Jassim Rahma13-Nov-11 8:10
Jassim Rahma13-Nov-11 8:10 
AnswerRe: error @ Functions Pin
thatraja13-Nov-11 9:05
professionalthatraja13-Nov-11 9:05 
GeneralRe: error @ Functions Pin
Jassim Rahma13-Nov-11 20:24
Jassim Rahma13-Nov-11 20:24 
Questioncan someone find the error please Pin
Member 832305613-Nov-11 1:47
Member 832305613-Nov-11 1:47 
SQL
DECLARE
        cursor  c1 is select * from dept;
        cursor  c2 is select * from emp;
        s emp.sal % type;
BEGIN
      for i in c1
      s:=0;
     dbms_output.put_line(‘-----------------------------------------------------’);
  dbms_output.put_line(‘Department is:’║ i.deptno║’Department name is:’║i.dname);
dbms_output.put_line(‘---------------------------------------------------------’);
    for j in c2 
           if(i.deptno=j.deptno)then
               s:=s+j.sal;
 dbms_output.put_line(j.empno║ ‘ ‘║j.ename ║’ ‘║j.sal);
end if;
end loop;
dbms_output.put_line(‘--------------------------------------------------------’);  
dbms_output.put_line (‘Total salary is:’║s);
dbms_output.put_line(‘--------------------------------------------------------’);
end loop;
END;



Please help i need solution ASAP ty
AnswerRe: can someone find the error please Pin
PIEBALDconsult13-Nov-11 2:01
mvePIEBALDconsult13-Nov-11 2:01 
GeneralRe: can someone find the error please Pin
Member 832305613-Nov-11 2:23
Member 832305613-Nov-11 2:23 
GeneralRe: can someone find the error please Pin
PIEBALDconsult13-Nov-11 2:47
mvePIEBALDconsult13-Nov-11 2:47 
GeneralRe: can someone find the error please Pin
Jörgen Andersson13-Nov-11 8:17
professionalJörgen Andersson13-Nov-11 8:17 
GeneralRe: can someone find the error please Pin
PIEBALDconsult13-Nov-11 17:30
mvePIEBALDconsult13-Nov-11 17:30 
GeneralRe: can someone find the error please Pin
Jörgen Andersson13-Nov-11 20:49
professionalJörgen Andersson13-Nov-11 20:49 
GeneralRe: can someone find the error please Pin
PIEBALDconsult14-Nov-11 1:40
mvePIEBALDconsult14-Nov-11 1:40 
AnswerRe: can someone find the error please Pin
Jörgen Andersson13-Nov-11 8:17
professionalJörgen Andersson13-Nov-11 8:17 
QuestionHow to open LDF file of SQL2000 Pin
Cold_Fearing_Bird10-Nov-11 18:52
Cold_Fearing_Bird10-Nov-11 18:52 
AnswerRe: How to open LDF file of SQL2000 Pin
Corporal Agarn11-Nov-11 1:23
professionalCorporal Agarn11-Nov-11 1:23 
AnswerRe: How to open LDF file of SQL2000 Pin
SilimSayo14-Nov-11 15:58
SilimSayo14-Nov-11 15:58 
QuestionData from multiple tables Pin
Manmohan2910-Nov-11 7:25
Manmohan2910-Nov-11 7:25 
AnswerRe: Data from multiple tables Pin
loyal ginger10-Nov-11 8:52
loyal ginger10-Nov-11 8:52 
GeneralRe: Data from multiple tables Pin
SilimSayo10-Nov-11 9:10
SilimSayo10-Nov-11 9:10 
GeneralRe: Data from multiple tables Pin
Manmohan2910-Nov-11 19:16
Manmohan2910-Nov-11 19:16 
GeneralRe: Data from multiple tables Pin
SilimSayo11-Nov-11 7:11
SilimSayo11-Nov-11 7:11 
GeneralRe: Data from multiple tables Pin
Manmohan2911-Nov-11 7:33
Manmohan2911-Nov-11 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.