Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8816435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:37:17+00:00 2026-06-14T04:37:17+00:00

First off, the version of MYSQL I’m using is 5.1.66-community-log . Now that we

  • 0

First off, the version of MYSQL I’m using is 5.1.66-community-log.

Now that we got that out of the way, I’m retrieving the following error when trying to create the below view:

You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near ‘all select RRA.id, RRA.reply_id as replyID, RRA.user_id,
RRA.vote_up, RRA.rank’ at line 4

and the view:

$sql = "Create or replace view userRank as 
select PRA.id, PRA.post_id as postID, PRA.user_id, PRA.vote_up, PRA.rank_date 
from post_rank_activity PRA
union all 
select RRA.id, RRA.reply_id as replyID, RRA.user_id, RRA.vote_up, RRA.rank_date 
from reply_rank_activity RRA";

I’ve checked a few sites and this seems to be the correct syntax – or has something changed over time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:37:18+00:00Added an answer on June 14, 2026 at 4:37 am

    Parentheses may helps, try :

    Create or replace view userRank as 
    (select PRA.id, PRA.post_id as postID, PRA.user_id, PRA.vote_up, PRA.rank_date 
    from post_rank_activity PRA)
    union all 
    (select RRA.id, RRA.reply_id as replyID, RRA.user_id, RRA.vote_up, RRA.rank_date 
    from reply_rank_activity RRA)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I'm using version 3.7.1 with a jQuery UI framework theme. I'm trying
First off, I am using a version of older version of dojo, so dojo.event.connect
First off, here's my current setup: Django : version 1.3 MySQL : version 4.0.18
First off, I'm using an older version of Restlet (1.1). Secondly, I'm not sure
First off, let me define the end goal: I'd like to Wordpress (version 2.8)
First off, I would like to make clear, that I am SUPER NEW TO
First off, I'm using XCode 4.0.2. Okay, here is my issue. I can build
First off, I'm using Google AppEngine and Guice, but I suspect my problem is
First off, I know there are ways to make it so that text can
First off, sorry for the cryptic question. My team is currently using Selenium 2.0rc3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.