Select-in the case of two applications and two connections, is the mysql stored procedure executed synchronously?

Source: Internet
Author: User
& Quot; CREATEDEFINER 'root' @ '%' PROCEDURE 'newproc' () begindroptableifexiststem_request; response, SaleCycleID, response, 10; updates_betrequestset... selectmysqljava data storage process

Create definer = 'root' @ '%' PROCEDURE 'newproc' () begindrop table if exists tem_request; create temporary table tem_request select RequestID, SaleCycleID, stationID from s_betrequest where requestStatus = 0 limit 0, 10; update s_betrequest set RequestStatus = 1 where RequestID in (select RequestID from tem_request); end;

I want to start two applications and operate on the database at the same time. when this stored procedure is called, the data obtained on both sides must be inconsistent, that is, they must obtain different result sets.

The above stored procedure is to query the data and store it in the temporary table tem_request, and change the status of each piece of data to 1 (the query time is 0)

Is the mysql stored procedure synchronized or not?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.