agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Karen Goh <karenworld@yahoo.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: Would like to know what is the problem in my sql statement
Date: Fri, 12 Jul 2019 12:22:57 +0000 (UTC)
Message-ID: <197814315.166934.1562934177625@mail.yahoo.com> (raw)
In-Reply-To: <CAKFQuwYGfEHWaC09vrhA7Wk4QO7ZESbHPxoVypaZnKRaA4LuvQ@mail.gmail.com>
References: <662129345.116124.1562897079696@mail.yahoo.com>
<CAKFQuwYGfEHWaC09vrhA7Wk4QO7ZESbHPxoVypaZnKRaA4LuvQ@mail.gmail.com>
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.
view thread (4+ messages)
Message-ID: <197814315.166934.1562934177625@mail.yahoo.com>
Permalink: ../197814315.166934.1562934177625@mail.yahoo.com/
Also on: postgresql.org/message-id/197814315.166934.1562934177625@mail.yahoo.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: karenworld@yahoo.com, david.g.johnston@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: Would like to know what is the problem in my sql statement
In-Reply-To: <197814315.166934.1562934177625@mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox