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

Database

 
GeneralRe: Pivot Not Working Pin
MadDashCoder12-Jun-16 8:36
MadDashCoder12-Jun-16 8:36 
GeneralRe: Pivot Not Working Pin
CHill6012-Jun-16 8:54
mveCHill6012-Jun-16 8:54 
GeneralRe: Pivot Not Working Pin
Mycroft Holmes12-Jun-16 12:58
professionalMycroft Holmes12-Jun-16 12:58 
QuestionDatabase backed up type virtual device- not mainteance ? Pin
SreeDBA5-Jun-16 5:28
SreeDBA5-Jun-16 5:28 
AnswerRe: Database backed up type virtual device- not mainteance ? Pin
Richard Deeming6-Jun-16 5:13
mveRichard Deeming6-Jun-16 5:13 
Questionsyntax error for simple IF - THEN Pin
Jassim Rahma1-Jun-16 7:50
Jassim Rahma1-Jun-16 7:50 
AnswerRe: syntax error for simple IF - THEN Pin
thatraja1-Jun-16 9:04
professionalthatraja1-Jun-16 9:04 
GeneralRe: syntax error for simple IF - THEN Pin
Jassim Rahma1-Jun-16 21:01
Jassim Rahma1-Jun-16 21:01 
I tried below code but getting same error for the IF--THEN
SQL
SET param_payroll_exists = (SELECT COUNT(*) FROM payroll WHERE location_id = param_location AND payroll_month = param_month AND payroll_year = param_year);

IF EXISTS (param_payroll_exists > 0) THEN
    SET param_payroll_id = 0;
END IF;

the exact error is:

You have an error in your SQL syntax. Check the manual that corresponds to you MySQL server for the right syntax to use near 'param_payroll_exists > 0) THEN ..........

Technology News @ www.JassimRahma.com

GeneralRe: syntax error for simple IF - THEN Pin
Peter_in_27801-Jun-16 21:13
professionalPeter_in_27801-Jun-16 21:13 
GeneralRe: syntax error for simple IF - THEN Pin
thatraja3-Jun-16 5:50
professionalthatraja3-Jun-16 5:50 
QuestionCall dll from SQL trigger Pin
srikrishnathanthri31-May-16 19:49
srikrishnathanthri31-May-16 19:49 
AnswerRe: Call dll from SQL trigger Pin
Richard Deeming1-Jun-16 2:39
mveRichard Deeming1-Jun-16 2:39 
GeneralRe: Call dll from SQL trigger Pin
srikrishnathanthri1-Jun-16 4:04
srikrishnathanthri1-Jun-16 4:04 
GeneralRe: Call dll from SQL trigger Pin
Richard Deeming1-Jun-16 4:14
mveRichard Deeming1-Jun-16 4:14 
QuestionJoining three tables Pin
Raabi Anony27-May-16 2:27
Raabi Anony27-May-16 2:27 
AnswerRe: Joining three tables Pin
Eddy Vluggen27-May-16 2:53
professionalEddy Vluggen27-May-16 2:53 
AnswerRe: Joining three tables Pin
Richard Deeming27-May-16 3:21
mveRichard Deeming27-May-16 3:21 
GeneralRe: Joining three tables Pin
Raabi Anony27-May-16 16:13
Raabi Anony27-May-16 16:13 
QuestionUpdate existing and next incoming entries in SQL server 2008 Pin
srikrishnathanthri26-May-16 21:14
srikrishnathanthri26-May-16 21:14 
AnswerRe: Update existing and next incoming entries in SQL server 2008 Pin
Richard MacCutchan26-May-16 21:24
mveRichard MacCutchan26-May-16 21:24 
AnswerRe: Update existing and next incoming entries in SQL server 2008 Pin
Eddy Vluggen26-May-16 23:44
professionalEddy Vluggen26-May-16 23:44 
QuestionError in SQL backup with checksum Pin
IT - Researcher23-May-16 1:30
IT - Researcher23-May-16 1:30 
AnswerRe: Error in SQL backup with checksum Pin
Richard Deeming23-May-16 2:06
mveRichard Deeming23-May-16 2:06 
GeneralRe: Error in SQL backup with checksum Pin
srikrishnathanthri26-May-16 21:16
srikrishnathanthri26-May-16 21:16 
GeneralRe: Error in SQL backup with checksum Pin
Richard Deeming27-May-16 0:09
mveRichard Deeming27-May-16 0:09 

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.