| От | Richard Huxton |
|---|---|
| Тема | Re: Utility that creates table schema from csv data? |
| Дата | |
| Msg-id | 43267BDC.40300@archonet.com обсуждение исходный текст |
| Ответ на | Utility that creates table schema from csv data? (CSN <cool_screen_name90001@yahoo.com>) |
| Список | pgsql-general |
CSN wrote: > Probably wishful thinking, but who knows - maybe > there's something in contrib! I have a bunch of csv > data with the field names specified on the first line > of the various files. Is there any such utility that > will create a table schema using the field names AND > look through the data and determine what data types > each field should be? I'm not sure that's possible in a general sense. Is 123 text or a number? How do I prove it one way or another? However, if you were happy to end up with "good enough" types (i.e. might end up using text instead of a more specific type), and know that data was representative then it shouldn't be too tricky to write some pattern-matching Perl to do the job. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера