Would like to know what is the problem in my sql statement - Mailing list pgsql-sql

From David G. Johnston
Subject Would like to know what is the problem in my sql statement
Date
Msg-id CAKFQuwYGfEHWaC09vrhA7Wk4QO7ZESbHPxoVypaZnKRaA4LuvQ@mail.gmail.com
Whole thread Raw
In response to Would like to know what is the problem in my sql statement  (Karen Goh <karenworld@yahoo.com>)
Responses Re: Would like to know what is the problem in my sql statement
List pgsql-sql
On Thursday, July 11, 2019, Karen Goh <karenworld@yahoo.com> wrote:

Please tell me why it says no value specified for parameter 1.

HashMap<Integer, ArrayList<String>> tutorSubject = new HashMap<Integer, ArrayList<String>>();

String sql1 = "select tutor_id, subject_name from tutor_subject where subject_name in ("
                                                       + builder.deleteCharAt( builder.length() -1 ).toString() + ")";                           


Because you don’t have any parameter placeholder symbols in your query?  I.e., the question mark “?” character...

David J.

pgsql-sql by date:

Previous
From: "Juan C. Olivares"
Date:
Subject: Re: Would like to know what is the problem in my sql statement
Next
From: Karen Goh
Date:
Subject: Re: Would like to know what is the problem in my sql statement