Answers for "remove duplicates from sql results flask"

SQL
0

flask sqlalchemy remove duplicates

mylist = db.session.query(User.name).all() # get all user.name from db
mylist1 = len(list(dict.fromkeys(mylist))) # remove the duplicate then use len() to find total
Posted by: Guest on April-27-2021

Code answers related to "remove duplicates from sql results flask"

Code answers related to "SQL"

Browse Popular Code Answers by Language