Checking to see if an entry exists in the database, if not, then add it Currently, in the database we only have two names, ‘Shaniqua’ and ‘Jose’ But the new list of names contains a new person ‘Latifah’. Here is how the db can be updated
Tag: MySQLdb
Categories
Pajek to database – Python
This is how you read a pajek file and move it all to a database. This consists of three files, all in the same directory sample.txt – the pajek sample file pajek_rw.py – module that reads the pajek file g2db.py – which moves all the data to a database sample.txt This is what the pajek […]
Categories
Names to MySQL db – Python
I have a very long list of files that are named like this…. [manufacturer]_[device].txt So this small script will take the names and put them on a database.
You must be logged in to post a comment.