Jump to content

Search the Community

Showing results for tags 'import csv'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 1 result

  1. Hello I need a help. I have try two ways of import csv files in a table. Basically i do this for automation. I have a csv file that is filled up every day with new appended data. I used 2 scripts: With the software: pgfutter pgfutter --db "Test" --port "5432" --user "postgres" --pw "1111" csv DATA.csv The only problem there is that if the csv file have cyrillic content its not displayed. But there is no issue when transfer duplicated rows. They are replaced by the new ones. In the second scripts the result is opposite. Its not replace if they are existed in the table. They are copied next to the same one: ( echo DELETE from testcsv; COPY testcsv FROM 'D:\data.csv' DELIMITER ',' CSV; ) | "C:\Program Files\PostgreSQL\9.6\bin\psql" -h localhost -p 5432 -U postgres -d Test -w I see in the Net that can accomplish this with temporary tables or upsert. Can you give me what is the best solution and give me example, please?
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.