Skip to content
Advertisement

Tag: mysql-connector

INSERT table names using SELECT statement in MySQL

In MySQL, I know I can list the tables in a database with: But I want to insert a table name into a specified table, for example: But when I execute the above statement, the dataset_names table does not get updated. I created the master table using: Here is the python code. Answer Here the order on insert values and

MySQL Query Passing Two Variables Python SQLConnector

I can’t seem to get two values passed on a query, I can get one variable to pass no problem, can’t figure out what I’m doing wrong, error posted when I try to use the two variable code, one variable code passes. One Variable: Two Variable: Error: Updated code after answer: Error: I am not sure I still get this

Use python script to edit data in logstash

I have a logstash configuration that gets data from a MySQL database and sends the data to elasticsearch. This is my configuration: Everything’s working fine, but I need to add some columns that have values dependent upon other column values, so I tried writing a Python script to do this. Is there a way to execute a python script to

mysql connector with python formating

I wrote a simple script that shows the user a letter and he has to write a human name that starts with the same letter, but I am having a problem automatically compensating for the column name using a variable… Is there a suggestion? How do I replace the column name with the variable let? The error: Answer You just

Advertisement