I'm trying to do a simple insert with python
mydb = mysql.connector.connect(
host="localhost",
user="**",
passwd="**"
)
mycursor = mydb.cursor()
sql = "INSERT INTO sponge_cakes.links (`url`) VALUES (%s)"
val = ("test1")
mycursor.executemany(sql, val)
mydb.commit()
This sort of works, but it inserts the string character by character (creating a new entry for each character)
How can I get it to insert the entire string so it looks like this
id | link
1 | test1
Instead of
id | link
1 | t
2 | e
...