Wednesday, August 22, 2018

django sqlite3 error

Hi these are my tables

music_name = char(username),userId(int)

meaning = char(meaning),userid(int)

i have used the join to merge this

db = sqlite3.connect('db.sqlite3')    cursor = db.cursor()      cursor.execute('\n'                           'INSERT INTO  music_result SELECT username, meaning ,NULL\n'                           'FROM music_name N JOIN music_sample1 T ON N.userid = T.userid \n')          db.commit()

when i tried to do this i got an error like

sqlite3.IntegrityError: datatype mismatch

please do help me to solve this error

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fe247615-ee16-49ff-833f-590fc2f9d602%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment