Click here to Skip to main content
16,004,887 members
Home / Discussions / Database
   

Database

 
AnswerRe: corrupted database Pin
Paul Conrad17-Jul-06 8:08
professionalPaul Conrad17-Jul-06 8:08 
AnswerRe: corrupted database Pin
ra ra ra ra17-Jul-06 22:42
ra ra ra ra17-Jul-06 22:42 
QuestionReturn 0 when no rows [modified] Pin
Heinz_15-Jul-06 13:49
Heinz_15-Jul-06 13:49 
AnswerRe: Return 0 when no rows Pin
ra ra ra ra16-Jul-06 23:26
ra ra ra ra16-Jul-06 23:26 
GeneralRe: Return 0 when no rows [modified] Pin
Heinz_17-Jul-06 9:30
Heinz_17-Jul-06 9:30 
GeneralRe: Return 0 when no rows Pin
Ennis Ray Lynch, Jr.17-Jul-06 12:42
Ennis Ray Lynch, Jr.17-Jul-06 12:42 
GeneralRe: Return 0 when no rows [modified] Pin
ra ra ra ra17-Jul-06 22:22
ra ra ra ra17-Jul-06 22:22 
GeneralRe: Return 0 when no rows [modified] Pin
Heinz_18-Jul-06 8:27
Heinz_18-Jul-06 8:27 
Thanx man. You really did it! thanx.
I was reading mysql 5 manual and there's a ISNULL(expression) function but it returns 1 if the expression is null and 0 if not null (the inverse of what i need), but, thank god there's also a IS NOT NULL wich return 1 when not null and 0 when null, so i have now many ways to acomplish my objective.

[ADDED] Reading about COALESCE() in mysql 5, and it works in a different manner than the normal ISNULL for MS SQL SERVER and others...COALESCE does not replace any null values nor it has a fixed return value, COALESCE() in mysql takes a list of values as a parameter and returns the first Not NULL value and returns NULL if any of the values in the list are not null, ie:

mysql> SELECT COALESCE(NULL,NULL,1,'hello','world',25);<br />
        -> 1<br />
mysql> SELECT COALESCE(NULL,NULL,NULL);<br />
        -> NULL


So, all i have to do in my case is: COALESCE(mycolumnvalue,0) and if the query returns mycolumnvalue null then it will return 0.

Bye,

-- modified at 14:52 Tuesday 18th July, 2006
Questioncan we create stored procedures in MS Access database Pin
ChennaiBabu14-Jul-06 21:15
ChennaiBabu14-Jul-06 21:15 
AnswerRe: can we create stored procedures in MS Access database Pin
mysorian15-Jul-06 4:43
professionalmysorian15-Jul-06 4:43 
AnswerRe: can we create stored procedures in MS Access database Pin
ra ra ra ra17-Jul-06 22:28
ra ra ra ra17-Jul-06 22:28 
Questionstored procedure Output parameter value is Null Pin
For_IT14-Jul-06 12:26
For_IT14-Jul-06 12:26 
AnswerRe: stored procedure Output parameter value is Null Pin
nguyenvhn14-Jul-06 16:24
nguyenvhn14-Jul-06 16:24 
AnswerRe: stored procedure Output parameter value is Null Pin
Colin Angus Mackay14-Jul-06 21:53
Colin Angus Mackay14-Jul-06 21:53 
GeneralRe: stored procedure Output parameter value is Null Pin
Mike Dimmick15-Jul-06 3:57
Mike Dimmick15-Jul-06 3:57 
GeneralRe: stored procedure Output parameter value is Null Pin
For_IT16-Jul-06 11:05
For_IT16-Jul-06 11:05 
GeneralRe: stored procedure Output parameter value is Null Pin
For_IT16-Jul-06 12:18
For_IT16-Jul-06 12:18 
QuestionProblem accessing a SSIS Package Pin
mysorian14-Jul-06 6:04
professionalmysorian14-Jul-06 6:04 
AnswerRe: Problem accessing a SSIS Package Pin
mysorian14-Jul-06 7:54
professionalmysorian14-Jul-06 7:54 
AnswerRe: Problem accessing a SSIS Package Pin
Dave Kreskowiak14-Jul-06 9:30
mveDave Kreskowiak14-Jul-06 9:30 
GeneralRe: Problem accessing a SSIS Package Pin
mysorian15-Jul-06 4:39
professionalmysorian15-Jul-06 4:39 
QuestionDifferance between '@variable' and '@@variable' in SQL Pin
Sampath Eleperuma14-Jul-06 4:09
professionalSampath Eleperuma14-Jul-06 4:09 
AnswerRe: Differance between '@variable' and '@@variable' in SQL Pin
Eric Dahlvang14-Jul-06 5:12
Eric Dahlvang14-Jul-06 5:12 
Questionnumeric data type value Pin
For_IT14-Jul-06 0:06
For_IT14-Jul-06 0:06 
AnswerRe: numeric data type value Pin
Mike Dimmick14-Jul-06 0:27
Mike Dimmick14-Jul-06 0:27 

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.