You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
254 B
13 lines
254 B
2 years ago
|
from Utils.Db import *
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
# 测试插入
|
||
|
data = {
|
||
|
'id': '20120001',
|
||
|
'name': 'Bob2',
|
||
|
'age': 20
|
||
|
}
|
||
|
table = 'students'
|
||
|
# Db.insert(table, data)
|
||
|
Db.update(table, "id", data)
|