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.
|
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)
|