Support the ongoing development of Laravel.io →
posted 8 years ago
Database
Last updated 2 years ago.
0

You mean you have multiple queries running and wants to rollback if one of them fails ? You can use transactions to do this. https://laravel.com/docs/5.3/database#database-transactions

0

I have an ajax who call a method wich running a big query. I want somethig like the user close the modal send another ajax to stop previous running query. I found something regarding mysql connection_id who return the process id of query and after send over sql command kill process_id. But didn't work the query still run in background. Thank a lot

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.