Click here to Skip to main content
15,888,984 members
Home / Discussions / Database
   

Database

 
AnswerRe: selecting maximum entry from sql server compact column Pin
paul4everyone24-Aug-13 2:47
paul4everyone24-Aug-13 2:47 
GeneralRe: selecting maximum entry from sql server compact column Pin
Mycroft Holmes24-Aug-13 13:31
professionalMycroft Holmes24-Aug-13 13:31 
GeneralRe: selecting maximum entry from sql server compact column Pin
Jörgen Andersson26-Aug-13 21:30
professionalJörgen Andersson26-Aug-13 21:30 
AnswerRe: selecting maximum entry from sql server compact column Pin
paul4everyone25-Aug-13 4:19
paul4everyone25-Aug-13 4:19 
GeneralRe: selecting maximum entry from sql server compact column Pin
Mycroft Holmes25-Aug-13 12:40
professionalMycroft Holmes25-Aug-13 12:40 
QuestionPL/MySQL - No data - zero rows fetched, selected, or processed Pin
noislude22-Aug-13 5:22
noislude22-Aug-13 5:22 
AnswerRe: PL/MySQL - No data - zero rows fetched, selected, or processed Pin
GuyThiebaut22-Aug-13 5:50
professionalGuyThiebaut22-Aug-13 5:50 
GeneralRe: PL/MySQL - No data - zero rows fetched, selected, or processed Pin
noislude22-Aug-13 10:10
noislude22-Aug-13 10:10 
Thanks GuyThiebaut. I Solved the problem even with the warning: I just printed the content with concat.

delimiter // 
drop procedure if exists sp_exemplo_cursor;

create procedure sp_exemplo_cursor() reads sql data
begin 
  declare var_salario numeric(8,2);
  declare var_empregado_id int;
  declare var_departamento_id int;
  declare flag_nao_encontrado int default 0;
  
  declare csr cursor for 
    select employee_id, salary, department_id from employees;
    
  declare continue handler for not found set flag_nao_encontrado = 1;
  
  open csr;
  exemplo_loop:loop  
     fetch csr into var_empregado_id, var_salario, var_departamento_id;
     if flag_nao_encontrado = 1 then 
       leave exemplo_loop;
     end if;
     select concat(var_empregado_id, ' ', var_salario, ' ', var_departamento_id);
  end loop exemplo_loop;    
  close csr;
end //

QuestionALTER TABLE question Pin
Corporal Agarn22-Aug-13 1:29
professionalCorporal Agarn22-Aug-13 1:29 
AnswerRe: ALTER TABLE question Pin
Simon_Whale22-Aug-13 1:49
Simon_Whale22-Aug-13 1:49 
GeneralRe: ALTER TABLE question Pin
Corporal Agarn22-Aug-13 1:56
professionalCorporal Agarn22-Aug-13 1:56 
AnswerRe: ALTER TABLE question Pin
Shameel22-Aug-13 2:34
professionalShameel22-Aug-13 2:34 
QuestionXML Clause is not allowed Pin
iCanDivideByZero21-Aug-13 7:13
iCanDivideByZero21-Aug-13 7:13 
AnswerRe: XML Clause is not allowed Pin
Eddy Vluggen22-Aug-13 5:15
professionalEddy Vluggen22-Aug-13 5:15 
QuestionSQL Query Pin
heinthuwin20-Aug-13 20:54
heinthuwin20-Aug-13 20:54 
AnswerRe: SQL Query Pin
Bernhard Hiller20-Aug-13 21:59
Bernhard Hiller20-Aug-13 21:59 
AnswerRe: SQL Query Pin
NickPace21-Aug-13 5:24
NickPace21-Aug-13 5:24 
GeneralRe: SQL Query Pin
heinthuwin21-Aug-13 18:41
heinthuwin21-Aug-13 18:41 
AnswerRe: SQL Query Pin
PIEBALDconsult21-Aug-13 7:19
mvePIEBALDconsult21-Aug-13 7:19 
GeneralRe: SQL Query Pin
Tim Carmichael21-Aug-13 8:40
Tim Carmichael21-Aug-13 8:40 
GeneralRe: SQL Query Pin
PIEBALDconsult21-Aug-13 14:51
mvePIEBALDconsult21-Aug-13 14:51 
GeneralRe: SQL Query Pin
Mycroft Holmes21-Aug-13 12:37
professionalMycroft Holmes21-Aug-13 12:37 
QuestionConnecting Access database to SQL Azure with limited privileges Pin
Peter R. Fletcher19-Aug-13 15:15
Peter R. Fletcher19-Aug-13 15:15 
QuestionDesign question - adding soft links to tables Pin
RyanEK19-Aug-13 15:11
RyanEK19-Aug-13 15:11 
AnswerRe: Design question - adding soft links to tables Pin
GuyThiebaut19-Aug-13 21:59
professionalGuyThiebaut19-Aug-13 21:59 

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.