• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

sql error

Guest
May 11, 2006 May 11, 2006

Copy link to clipboard

Copied

Hi i have just changed my database from access to mysql, there is just one error i have

could someone tell me why this is any how i could fix this

many thanks

the error is
Error Executing Database Query. FUNCTION cricketstats.SUM does not exist
TOPICS
Advanced techniques

Views

335

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 11, 2006 May 11, 2006

Copy link to clipboard

Copied

Just off of the top of my head I would say that you would need to convert all of your IIF statements to CASE statements, as I don't believe that you can use IIF in MySQL. I don't use MySQL myself, but I think that the attachment is close to using the correct syntax. Also, I believe that MySQL has an IF(expr1,expr2,expr3) flow control function as well, where If expr1 is TRUE (expr1 <> 0 and expr1 <> NULL) then IF() returns expr2; otherwise it returns expr3. IF() returns a numeric or string value, depending on the context in which it is used.

Phil

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 11, 2006 May 11, 2006

Copy link to clipboard

Copied

Hi thanks for that, i also get an error with the count and sum functions

the error i get is FUNCTION sum does not exist

is there any emaples of sql code and normal code?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 12, 2006 May 12, 2006

Copy link to clipboard

Copied

What version of MySQL are you using? Any version older than 4.1 did not support subqueries/subselects.

Phil

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 12, 2006 May 12, 2006

Copy link to clipboard

Copied

LATEST
What kind of errors do you get when you run this?

Phil

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation