Re: Would like to know what is the problem in my sql statement

Поиск
Список
Период
Сортировка
От Karen Goh
Тема Re: Would like to know what is the problem in my sql statement
Дата
Msg-id 197814315.166934.1562934177625@mail.yahoo.com
обсуждение исходный текст
Ответ на Would like to know what is the problem in my sql statement  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-sql

Thank you all for telling me where is the problem. I was overwhelmed at attempting this for the first time and my eyes painful.

Now, it is working ok.

Thank you all for your help. Really appreciate it.
On Friday, July 12, 2019, 10:34:37 AM GMT+8, David G. Johnston <david.g.johnston@gmail.com> wrote:


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 по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Would like to know what is the problem in my sql statement
Следующее
От: Ed Behn
Дата:
Сообщение: Re: Error: rows returned by function are not all of the same row type