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()
class result(models.Model): userid = models.IntegerField(primary_key=True)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)