All Questions
Tagged with parameterized-query or prepared-statement
6,648 questions
3 votes
1 answer
148 views
postgres: parameterized query with pattern matching
in node, i'm creating the following query: let sql_query = "\ SELECT \ ... \ WHERE \ FACILITY_ID = $1 \ AND (EVENT_START_TIME_UNIX_MS < $2) \ AND (...
0 votes
0 answers
158 views
Spring Boot with mariadb-java-client, AWS JDBC Wrapper, and HikariCP: PreparedStatement executeBatch Only Works with Single Statement in Batch
I have a Spring Boot application that connects to an Amazon Aurora MySQL-compatible database. The setup uses the MariaDB JDBC driver, the AWS JDBC wrapper, and HikariCP for connection pooling. My code ...
0 votes
1 answer
101 views
Shortcut for Question marks in preparedStatement for parameterized query [duplicate]
I have a table with 200 columns. I am trying to prepare an "insert into this table" from excel file to a database table. I should put 190 question marks more. ps = con.prepareStatement("...
2 votes
3 answers
404 views
What's the benefit to using execute over query in mysql2?
When using the NodeJS mysql2 library, I am trying to understand the differences between Connection.execute and Connection.query. As I understand it, query prepares the statement locally and then makes ...
1 vote
1 answer
84 views
How to perform a multi row insert in postgres with a prepared statement
I'm trying to use the multi row insert with postgres INSERT INTO table_name (column_list) VALUES (value_list_1), (value_list_2), ... (value_list_n); on a list of Strings that can of course be of ...
0 votes
0 answers
32 views
In PHP I don't get the result I have in PHPmyAdmin [duplicate]
I am trying to use MySQL CONCAT_WS in a PDO Prepared Statement. I tested the query inside of phpMyAdmin and it works perfectly but not in a PDO Prepared Statement. Here is the phpMyAdmin query which ...
0 votes
0 answers
28 views
Goland PSQL prepared statement always throwing error when updating JSONB value for a key
I'm getting myself confused I think, but I am trying to update a value in a JSON object (jsonb column) of a psql database like so func updateProfileLessonProgress(userID string, lessonID, currentSlide ...
0 votes
1 answer
58 views
Transaction JDBC Java Insert does not Insert/Update entrys in table
For my work i need to create several PrepareStatements which are inserted in my table. Normally i have no problem with this, but this problem don't make any sense to me. I work in a give environment ...