Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c73d42b1
authored
Oct 14, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add update required
parent
e0c6654d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
test3.py
test3.py
View file @
c73d42b1
...
...
@@ -29,7 +29,7 @@ conf = config_prod
if
__name__
==
'__main__'
:
query_sql
=
"update lie_shop_attr set is_required = 0 where id = 5096 or id = 5097"
query_sql
=
"update lie_shop_attr set is_required = 0 where id = 5096 or id = 5097
or id = 493
"
db
=
pymysql
.
connect
(
host
=
conf
[
"mysql"
][
"host"
],
port
=
3306
,
user
=
conf
[
"mysql"
][
"user"
],
password
=
conf
[
"mysql"
][
"password"
],
database
=
conf
[
"mysql"
][
"database"
])
cursor
=
db
.
cursor
()
cursor
.
execute
(
query
=
query_sql
)
...
...
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