es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: MYSQL-CONNECTOR-PYTHON

cómo obtener la respuesta de MySQL para las filas coincidentes?

Salida de workbench La fila coincidente no está incluida en el documento pydocument de MySQL MySQLCursor.columnnames, Propiedad MySQLCursor.columnnames MySQLCursor.description, Propiedad MySQLCursor.description MySQLCursor.lastrowid, Propiedad MySQLCursor.lastrowid MySQLCursor.rowcount, Propiedad MySQLCursor.rowcount MySQLCursor.statement, Propiedad MySQLCursor.statement MySQLCursor.withrows, Propiedad MySQLCursor.withrows

TypeError: MySQLConnectionAbstract.__init__() recibe 1 argumento posicional pero se proporcionaron 2.

Obtuve el siguiente error: TypeError: MySQLConnectionAbstract.init() toma 1 argumento posicional pero se dieron 2 Aquí está mi db.py: “` import mysql.connector localhost = “localhost” username = “Admin” password = “test123” db = “testing” Connect = “host='{}’, user='{}’, password='{}’, db='{}’”.format(localhost, username, password, db) cnn = mysql.connector.connect(Connect) # línea 16 error cnn . . . Read more

Llamar a fetchall() después de ejecutar un procedimiento almacenado me devuelve una lista vacía.

Tengo este procedimiento almacenado: CREATE DEFINER=`user`@`%` PROCEDURE `create_merkmal`(IN malter int, IN geschlecht tinyint(1), IN groesse int, IN Tier_tierID int) BEGIN insert into Merkmal(malter , geschlecht , groesse, Tier_tierID) values (malter , geschlecht , groesse, Tier_tierID); SELECT LAST_INSERT_ID(); END La ID de Merkmal está configurada para AutoIncremento. Y el procedimiento almacenado . . . Read more