Skip to main content

Dynamically constructing add/delete/reference statements using python

Project description

python-MySQL-

Use query statements to dynamically fetch database column names and generate insert statements Enter the MySQL database address username and password. Select the database and table names.

Insert Functions

First, use a query to retrieve the database columns. Create a dictionary and generate an insert statement.

Delete Function

First use the query function to check whether the input column and the keyword of the column exist or not. Delete the entire row by entering the column name and the keyword of the column to be deleted.

Query Function

Input the column and the keyword of the column to form a query statement.

Modify

Input the column name, keyword and content to be changed. Use the column name and keyword to determine what to change. Finally, modify the table with the changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MotionMySql-0.0.1.tar.gz (8.0 kB view details)

Uploaded Source

File details

Details for the file MotionMySql-0.0.1.tar.gz.

File metadata

  • Download URL: MotionMySql-0.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for MotionMySql-0.0.1.tar.gz
Algorithm Hash digest
SHA256 683cfd68ca43d4a47dffaae2baeba789bfee68875ad6cba24979fdac8fdf6f3e
MD5 b8d51d19fcde1b675fa0bf33fc33d8e0
BLAKE2b-256 c0212129555001e9965b486080bb06a646896cb834b8e90377076ec1fda8a228

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page