Coder Social home page Coder Social logo

Comments (5)

enumag avatar enumag commented on July 20, 2024

What error?

from mysql.

ori1989 avatar ori1989 commented on July 20, 2024

Fatal error: Uncaught Amp\Sql\QueryError: MySQL error (1064): #42000 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 'SELECT * from temp2 WHERE id = ?' at line 2 Current query was SELECT * from temp1 WHERE id = :id1; SELECT * from temp2 WHERE id = :id2;
...

Note: When I checked each of the prepared queries without the another one, it worked.
However, when I put these 2 prepared queries together, I got this error.

from mysql.

kelunik avatar kelunik commented on July 20, 2024

I guess multiple queries in one statement aren't currently supported. I'd advise you to use separate prepared statements.

from mysql.

fshahzad avatar fshahzad commented on July 20, 2024

You can try the 'Union' or 'Union All' between two or more queries.

from mysql.

trowski avatar trowski commented on July 20, 2024

This is now supported in the v3 branch compatible with Amp v3 + PHP 8.1 + fibers.

from mysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.