Python Forum
1062 mysql ( sql alchemy) duplication error customisation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1062 mysql ( sql alchemy) duplication error customisation
#3
The csv contains multiple columns (14) , one of which being date / time. If even a figure changes in any column then the row will need to be entered.

If the row is absolutely identical to one already in the table then it should be rejected (ignored), no updating should take place.

Duplication 'should' not occur within the file so there shouldnt be need to dedup that ( however could of necessary :) )

And from what you are saying I should use the database to filter the csv, and such leave just the files NOT in the database. Then upload those files back into the database. If my understanding is correct.

Inserting one at a time is definitely not an option as the csv will contain between 100-500 rows and the database, well 1 csv entered a day, so will grow rapidly
Reply


Messages In This Thread
RE: 1062 mysql ( sql alchemy) duplication error customisation - by KirkmanJ - Jun-27-2018, 03:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mysql and mysql.connector error lostintime 2 858 Oct-03-2023, 10:25 PM
Last Post: lostintime
  SQL Alchemy help to extract sql data into csv files mg24 1 1,974 Sep-30-2022, 04:43 PM
Last Post: Larz60+
  Mysql Syntax error in pymysql ilknurg 4 2,587 May-18-2022, 06:50 AM
Last Post: ibreeden
Question I am struggling with basic json library + sql alchemy w/ mariadb-connector json ->sql BrandonKastning 0 1,610 Mar-04-2022, 09:26 PM
Last Post: BrandonKastning
  Mysql error message: Lost connection to MySQL server during query tomtom 6 16,877 Feb-09-2022, 09:55 AM
Last Post: ibreeden
  mySQL Database error not resolving. cybertooth 2 3,386 Aug-30-2021, 05:45 PM
Last Post: ibreeden
  MYSQL.CONNECTOR ERROR DB1 8 4,115 Jul-23-2021, 03:31 AM
Last Post: DB1
  pool mysql error - not catch by try\except? korenron 1 2,256 Jul-05-2021, 11:26 AM
Last Post: ibreeden
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 error from Mysql call AkaAndrew123 1 3,592 Apr-28-2021, 08:16 AM
Last Post: AkaAndrew123
  Error in Mysql Client when upgrading Django Abi 0 1,943 Sep-21-2020, 06:11 AM
Last Post: Abi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020