Questions tagged as 'mysql'

1
answer

Syntax error in Stored Procedure

I have the following code to create a stored procedure: CREATE PROCEDURE UpdateProductos( _Id int, _Producto varchar(60), _CategoriaId int, _Descripcion varchar(400), _UsuarioModificador varchar(60), _Estado int ) BEGI...
asked by 07.08.2018 / 17:52
1
answer

Hibernate + Abstract Classes

Following as regards my doubts about Hibernate is concerned. Let's say I have a database with the table asignatura . CREATE TABLE IF NOT EXISTS 'asignatura' ( 'id' int(11) NOT NULL, 'name' varchar(12) NOT NULL, PRIMARY KEY ('id') )...
asked by 17.08.2018 / 16:10
2
answers

Connection failed to localhost MySQL when creating a Database

In a new installation of Gx15 u10 when trying to connect to a Database MySQL 8.0.12 shows the error of the capture:    MySQLNonTransientConnectionException: Client does not support   authentication protocol requested by server;...
asked by 08.08.2018 / 21:20
1
answer

How to download a local file that is on Another Local disk with pure Javascript

I have the following code: <button onclick="javascript:descargarZip(this.value)" value="<%=sArchivoZip%>"><img src="./IMG/icons/mail-arrow-down-icon.png" /></button> which calls a download function in js: function...
asked by 06.09.2018 / 03:16
1
answer

What am I doing wrong in this PHP MySQL exercise [closed]

I'm doing an inner join of 3 tables and it does not work ... with 2 tables it's all good .. when I add the third table it does not show me anything. <?php try{ require_once('include/funciones/db_conexion.php');...
asked by 18.10.2018 / 03:10
1
answer

How to fill a JComboBox in java?

Good day! I have a problem, I am trying to fill a JComboBox from mysql, and I can not! :( The console does not send me an error but it does not show anything either, I'm just starting in this and I do not have much experience! Hopefully someone...
asked by 23.07.2018 / 17:33
2
answers

Problem with subquery

I have the following sentence that helps me to update the fields of a detail_dulce table that collects only numerical values update producto inner join detalle_dulce on detalle_dulce.idp = producto.idp inner join existencia on producto.idp = e...
asked by 23.07.2018 / 18:57
1
answer

Problem with $ _GET

*** I have the following PHP file to connect to a database in MySQL: Connection.php <?php $Link = 'mysql:host=localhost;dbname=yt_colores'; $Usuario = 'root'; $Password = 'root'; try{ $PDO = new PDO($Link, $Usuario, $Password); } catch...
asked by 26.07.2018 / 21:15
2
answers

Save data in a variable of an array within a while?

I make a query to the Database where it brings me a certain initial numbers and some endings that are saved in the arrays $ initial and $ final. I go through these arrays with a while but I want that every time the array is traversed, the initia...
asked by 01.08.2018 / 18:49
1
answer

do a correct if else in MySQL procedure?

I have a condition that will be executed depending on the data that is being sent to the procedure. This is my code: CREATE DEFINER = erp@localhost PROCEDURE sp_stockProductoMovimientoAlmacen( idProducto VARCHAR(50), operacion CHAR(6),...
asked by 21.07.2018 / 18:34