UPDATE no SQLite com Python
This commit is contained in:
@@ -71,6 +71,13 @@ if __name__ == '__main__':
|
||||
)
|
||||
connection.commit()
|
||||
|
||||
cursor.execute(
|
||||
f'UPDATE {TABLE_NAME} '
|
||||
'SET name="QUALQUER", weight=67.89 '
|
||||
'WHERE id = 2'
|
||||
)
|
||||
connection.commit()
|
||||
|
||||
cursor.execute(
|
||||
f'SELECT * FROM {TABLE_NAME}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user