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 5952507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:41:30+00:00 2026-05-22T17:41:30+00:00

I am fetching data from MySql database to solr server, my point is can

  • 0

I am fetching data from MySql database to solr server, my point is can i run update command?
My db-data-config.xml file is as :

<document name="d1"> 
     <entity name="torder" query="update  torder set price='7777.00' where UID_PK='13142'">
        </entity>
    </document>

when I run command to index data then it throws an exception saying unable to executequery “update torder set price=’7777.00′ where UID_PK=’13142′”, I want to know is it possible to run update here.please reply

  • 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-22T17:41:31+00:00Added an answer on May 22, 2026 at 5:41 pm

    interesting, but is unlikely to work as solr should expecting some data to be returned by the query (the data then will be used for constructing the solr document fields)

    if putting update statement into a stored procedure,
    with given correct access right,
    probably can do this – call simpleproc (7777.00, 13142);

    delimiter //
    CREATE PROCEDURE simpleproc (IN id INT, IN price DOUBLE)
    BEGIN
      UPDATE element SET torder price=val WHERE UID_PK=id;
      SELECT * FROM torder_price WHERE UID_OK=id;
    END//
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't get nl2br function to work after fetching data from my database: $result
I'm currently fetching data from a MySQL database using JDBC and executeQuery . One
If I am fetching data from a MySQL database and using a while loop
I'm fetching data from external database (I cannot edit it so don't suggest that
I'm fetching data from a text file or log periodically and it gets inserted
My application is fetching a data dynamically from MYSQL and displaying. The Problem is
Sometimes, when fetching data from the database either through the python shell or through
I am fetching data from database and i am showing it in multiple select
I have written a script which is fetching data from database. Now I want
I am fetching data from the following database: I have arduino-box that send that

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.