Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
ctr-estimate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵建伟
ctr-estimate
Commits
157c8226
You need to sign in or sign up before continuing.
Commit
157c8226
authored
Apr 07, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
597a8687
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
estimate_surplus_del.py
libs/estimate_surplus_del.py
+2
-2
No files found.
libs/estimate_surplus_del.py
View file @
157c8226
...
@@ -39,8 +39,8 @@ class MysqlOperator:
...
@@ -39,8 +39,8 @@ class MysqlOperator:
# 删除或修改数据
# 删除或修改数据
def
del_or_update
(
sql
):
def
del_or_update
(
sql
):
#
operator = MysqlOperator('172.16.40.170', 4000, 'data_user', 'YPEzp78HQBuhByWPpefQu6X3D6hEPfD6', 'jerry_test')
operator
=
MysqlOperator
(
'172.16.40.170'
,
4000
,
'data_user'
,
'YPEzp78HQBuhByWPpefQu6X3D6hEPfD6'
,
'jerry_test'
)
operator
=
MysqlOperator
(
'172.18.44.3'
,
3306
,
'root'
,
'5OqYM^zLwotJ3oSo'
,
'jerry_test'
)
#
operator = MysqlOperator('172.18.44.3', 3306, 'root', '5OqYM^zLwotJ3oSo', 'jerry_test')
operator
.
execute_sql
(
sql
)
operator
.
execute_sql
(
sql
)
operator
.
close_connect
()
operator
.
close_connect
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment