| От | Oliver Jowett |
|---|---|
| Тема | Re: prepareStatement() |
| Дата | |
| Msg-id | 42E1EEA6.60407@opencloud.com обсуждение исходный текст |
| Ответ на | prepareStatement() (Michael Allman <msa@allman.ms>) |
| Список | pgsql-jdbc |
Michael Allman wrote: > Does Postgres's JDBC Connection#prepareStatement(String) method support > queries that can't be prepared by the backend? (Namely those that are > not of the SELECT, INSERT, UPDATE, or DELETE variety?) It supports any query that the backend can parse -- it uses the v3 protocol Parse/Bind messages rather than using the SQL PREPARE statement so it's not limited to SELECT/INSERT/UPDATE/DELETE. The main gotcha (just mentioned in my previous email) is that you can only put parameter placeholders where there is a PARAM terminal in the server's SQL grammar (i.e. somewhere you could legally put $1, $2, etc) -O
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера