| От | Claudio Lapidus |
|---|---|
| Тема | Re: Comments in .sql files |
| Дата | |
| Msg-id | BAY7-DAV18Fo1v7R7XA0000f969@hotmail.com обсуждение |
| Ответ на | Comments in .sql files ("Chad N. Tindel" <chad@tindel.net>) |
| Ответы |
Re: Comments in .sql files
|
| Список | pgsql-general |
> 1. It obviously doesn't like the # notation for comments. What is the proper > way to put comments in schema files? Start the comment with two hyphens, like this: -- This is a comment. It will continue up to the newline. > > 2. Why does postgres ignore the first insert? Shouldn't it just barf on > the "#" line and keep going? Since PG isn't parsing the '#', it discards all entry up to (what it thinks is) the end of the statement, i.e. up to the next semicolon. Bear in mind that newlines are, in general, treated like whitespace, so they don't have any syntactic value. hth, cl.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера