Where to store SQL commands for execution

后端 未结 12 1469
后悔当初
后悔当初 2021-02-05 16:00

We face code quality issues because of inline mysql queries. Having self-written mysql queries really clutters the code and also increases code base etc.

Our code is clu

12条回答
  •  遥遥无期
    2021-02-05 16:57

    Call procedure in the code after putting query into the db procedure. @paval also already answered you may also refer here.

    create procedure sp_query()
    select * from table1;

提交回复
热议问题