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

  • Home
  • SEARCH
  • 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 6075275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:28:35+00:00 2026-05-23T10:28:35+00:00

This is a pretty simple problem and I’m pretty sure its just something I’m

  • 0

This is a pretty simple problem and I’m pretty sure its just something I’m overlooking.
Basically I’m trying to update a table with some values. Pretty straightforward and nothing that should give me a headache. Yet here I am.

This is being executed from Ruby on Rails with SQLite3 for the database.
The code is as below:

def goodbye
require 'sqlite3'

db = SQLite3::Database.new( "test.db" )
rows = db.execute( " CREATE TABLE IF NOT EXISTS siteQueue
(
siteQueueKey INTEGER PRIMARY KEY,url TEXT,depth double,numLinks INTEGER);"
)

db.execute( 
"INSERT INTO "siteQueue"  VALUES(1,'www.yahoo.co.uk',1.0 ,20);
 INSERT INTO "siteQueue"  VALUES(2,'www.google.com', 2.5, 30);
 INSERT INTO "siteQueue"  VALUES(3, 'www.person.name', 9.0, 2);
 COMMIT;")

or

   db.execute( 
"INSERT INTO "siteQueue" 
(PRIMARY KEY,url,depth,numLinks)
 VALUES(1,'www.yahoo.co.uk',1.0 ,20);

 INSERT INTO "siteQueue" 
 (PRIMARY KEY,url,depth,numLinks)
  VALUES(2,'www.google.com', 2.5, 30);

 INSERT INTO "siteQueue" 
 (PRIMARY KEY,url,depth,numLinks)
 VALUES(3, 'www.person.name', 9.0, 2);

 COMMIT;")

Both of which are looking for something after siteQueue. I have no idea why.

Errors are here

app/controllers/say_controller.rb:16: syntax error, unexpected tIDENTIFIER, expecting ')'
"INSERT INTO "siteQueue"  VALUES(1,'www.yahoo.co.uk',1.0 ,20);
                       ^
app/controllers/say_controller.rb:17: syntax error, unexpected tIDENTIFIER, expecting kEND
 INSERT INTO "siteQueue"  VALUES(2,'www.google.com', 2.5, 30);

Has anyone got any ideas? This is more than likely something simple and I just need a fresh pair of eyes.


Its double Quotes -_-

  • 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-05-23T10:28:36+00:00Added an answer on May 23, 2026 at 10:28 am

    db.execute(
    “INSERT INTO “siteQueue”

    looks like too many quotes ….

    “INSERT INTO ‘siteQueue’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im sure this is pretty simple but I just cant seem to find the
this is a pretty simple problem, and im not sure if there is one,
This is a pretty simple problem. Inserting data into the table normally works fine,
This is pretty simple, I come from a swing/awt background. I'm just wondering what
Guess this is a pretty simple problem. I've got a regex and php that
This should be a pretty simple thing to do with Update Panels, but I'm
So I'm having this problem, it should be pretty simple, but I don't know
My problem is pretty simple, but I just can't solve it by myself. Does
Hey There, This is a pretty simple problem, but it is my first time
I think this may be a pretty simple ActiveRecord problem to solve but if

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.