Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- res = input('Resource: ')
- current_username = input('Current username: ')
- username = input('New username: ')
- password = input('New password: ')
- cursor = conn.cursor()
- # Изменение записи
- edit = """
- UPDATE passwords
- SET username = {username}'
- SET password = {password}'
- WHERE username = {current_username}'
- """
- cursor.execute(edit)
- # Сохраняем изменения
- conn.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement