Re: COPY syntax improvement
От | Bruce Momjian |
---|---|
Тема | Re: COPY syntax improvement |
Дата | |
Msg-id | 200206200246.g5K2kj616125@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: COPY syntax improvement (Peter Eisentraut <peter_e@gmx.net>) |
Список | pgsql-hackers |
Peter Eisentraut wrote: > Bruce Momjian writes: > > > COPY table > > FROM { 'filename' | stdin } > > [ [ WITH ] > > [ BINARY ] > > [ OIDS ] > > [ DELIMITER 'delimiter' ] > > [ NULL AS 'null string' ] ] > > I'm not sure what was wrong with the old syntax except for fixing the > DELIMITER plural. For example, the current > > copy mytable with oids from stdin using delimiter '|'; > > reads very pleasantly, but > > copy mytable from stdin with oids delimiter '|'; > > isn't nearly as good. (E.g., it's not the oids' delimiter, and it's not > *with* delimiter because you don't actually copy the delimiter, you just > use it.) New supported syntax I posted is now DELIMITER [AS] ' '. I noticed that problem myself, that NULL had AS but DELIMITER didn't. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: