MySQL stored procedures out variable as array

Sergey Scopin

I have MySQL procedure where I want to get a result of query:

SELECT id FROM mbus_clients WHERE second_name like surnamePart AS

So it should be an array. The decision I've found in the internet is to use temporary table. But how can I return a table and read with PHP? Is it ok?

Barmar

Simply call the procedure:

CALL procedurename();

If the procedure performs a SELECT, the result set of the procedure call will be the same as if you'd performed the query itself. You can then fetch the rows using PHP the same way as if you'd performed a SELECT.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

MySQL stored procedures out variable as array

From Dev

MYSQL Stored Procedures: Variable Declaration and Conditional Statements

From Dev

MYSQL Stored Procedures: Variable Declaration and Conditional Statements

From Dev

Can't retrieve OUT parameters from stored procedures (MySQL)

From Dev

Can't retrieve OUT parameters from stored procedures (MySQL)

From Dev

Synchronizing stored procedures in mysql

From Dev

Call mysql stored procedures parameter

From Dev

MySQL stored procedures syntax error

From Dev

How to encrypt stored procedures in MySQL?

From Dev

Calling stored procedures with an OUT parameter not work?

From Dev

Error after calling mysql stored procedures

From Dev

Stored Procedures VB.NET MYSQL

From Dev

Disallow NULL parameters to stored procedures in MySQL/MariaDB

From Java

List of Stored Procedures/Functions Mysql Command Line

From Dev

MySQL Stored Procedures vs JPA Queries

From Dev

MySql PHP stored procedures, transactions and rollbacks

From Dev

Retrieving output of MySQL stored procedures with QSqlQuery

From Dev

MySQL stored procedures Can't create

From Dev

Does MySQL truncate parameters in stored procedures?

From Dev

How to populate combobox with mysql database stored procedures

From Dev

Unable to create stored procedures in Mysql 5.6.13

From Dev

Passing Array into Oracle .NET Stored Procedures

From Dev

Mysql make a stored procedure from multiple stored procedures

From Dev

(C# application with oracle database) returning out parameters in stored procedures

From Dev

Calling overloaded stored procedures with both one variable and no variables

From Dev

SQL Server stored procedures calls require variable declaration (but already declared)

From Dev

Calling stored procedures from PHP, with a PHP variable as the IN parameter

From Dev

Calling overloaded stored procedures with both one variable and no variables

From Dev

Execute Array stored in a variable

Related Related

  1. 1

    MySQL stored procedures out variable as array

  2. 2

    MYSQL Stored Procedures: Variable Declaration and Conditional Statements

  3. 3

    MYSQL Stored Procedures: Variable Declaration and Conditional Statements

  4. 4

    Can't retrieve OUT parameters from stored procedures (MySQL)

  5. 5

    Can't retrieve OUT parameters from stored procedures (MySQL)

  6. 6

    Synchronizing stored procedures in mysql

  7. 7

    Call mysql stored procedures parameter

  8. 8

    MySQL stored procedures syntax error

  9. 9

    How to encrypt stored procedures in MySQL?

  10. 10

    Calling stored procedures with an OUT parameter not work?

  11. 11

    Error after calling mysql stored procedures

  12. 12

    Stored Procedures VB.NET MYSQL

  13. 13

    Disallow NULL parameters to stored procedures in MySQL/MariaDB

  14. 14

    List of Stored Procedures/Functions Mysql Command Line

  15. 15

    MySQL Stored Procedures vs JPA Queries

  16. 16

    MySql PHP stored procedures, transactions and rollbacks

  17. 17

    Retrieving output of MySQL stored procedures with QSqlQuery

  18. 18

    MySQL stored procedures Can't create

  19. 19

    Does MySQL truncate parameters in stored procedures?

  20. 20

    How to populate combobox with mysql database stored procedures

  21. 21

    Unable to create stored procedures in Mysql 5.6.13

  22. 22

    Passing Array into Oracle .NET Stored Procedures

  23. 23

    Mysql make a stored procedure from multiple stored procedures

  24. 24

    (C# application with oracle database) returning out parameters in stored procedures

  25. 25

    Calling overloaded stored procedures with both one variable and no variables

  26. 26

    SQL Server stored procedures calls require variable declaration (but already declared)

  27. 27

    Calling stored procedures from PHP, with a PHP variable as the IN parameter

  28. 28

    Calling overloaded stored procedures with both one variable and no variables

  29. 29

    Execute Array stored in a variable

HotTag

Archive