So I am using psycopg2 on Python3.5 to insert some data into a postgresql database. What I would like to do is have two columns that are strings and have the last column jus
You can serialize the data using JSON before storing the data:
import json
data = json.dumps({'id':'122','name':'test','number':'444-444-4444'})
Then when retrieving the code you deserialize it:
cur.execute('SELECT dict from ....')
res = cur.fetchone()
dict = json.loads(res['dict'])
print(dict['number'])