B
B
beduin012015-01-03 00:18:02
SQL
beduin01, 2015-01-03 00:18:02

Editor for compiling SQL queries in code?

I do SQL queries in code like this. At the beginning I write the request in the editor. If it works, then I copy it into the code and replace the values ​​in the query with variables.
However, if there are a lot of brackets and variables, then you get a real hell with brackets and quotes.
Question. Maybe there is an easier way, or some kind of tool, so that I can simply substitute the necessary variables in the request and insert it into the code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-01-03
Protko @Fesor

sql parameters binding
and in your case I think it's worth looking towards which ORM...

S
screen_sailor, 2017-06-02
@screen_sailor

https://stackoverflow.com/questions/9772036/pass-a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question