Questions tagged as 'mysql'

2
answers

Undefined offset

Supposedly the counter ends in "2" but the error tells me that "3" is not defined. <?php include_once 'includes/templates/header.php'; ?> <section class="seccion contenedor"> <h2>Calendario de Eventos</h2>...
asked by 05.10.2017 / 07:55
0
answers

Problem with MySql WorkBench authentication

I was working on an app that connects to mysql server as a database but at some point I changed the password of the user root now when I try to see the data in my tables I get this 10:52 : 23: Error Code: 1820 You must reset your password usin...
asked by 05.10.2017 / 17:55
0
answers

error # 1005 - Can not create table (errno: 150)

I try to create a table that refers to a foreign key that I created earlier, the statement of my instruction goes like this: create table IF NOT EXISTS opcion( id_opcion varchar(21) not null, id_pregunta varchar (21)not null, prima...
asked by 05.10.2017 / 17:00
1
answer

doubts about response time json ajax

I have a query in which I consult a record which I do with ajax and I get the data in json. now my questions is how I could optimize the response time since for example the query takes about 4 seconds, the table that I consult has ten rows, then...
asked by 31.10.2017 / 23:57
1
answer

Replicate database taking into account possible changes in the source BD

Good day, I need to "replicate" some fields of some a database, the problem is that I must contemplate the fact that some data in the source DB are modified to update those in the new DB and not generate a new record. In my first load of data, I...
asked by 13.11.2017 / 17:13
1
answer

Insert a record if it EXISTS otherwise UPDATE it MYSQL

Good friends I hope you can help me, I have the following table CREATE TABLE 'almacen_articulo' ( 'id' INT(4) NOT NULL AUTO_INCREMENT, 'existencia' VARCHAR(5) NOT NULL DEFAULT '0', 'id_articulo' VARCHAR(4) NOT NULL DEFAULT '0', 'id_almacen'...
asked by 06.10.2017 / 05:33
1
answer

See left join with 6 tables

I have 6 survey tables, form_alumnos, dimension, questions, answer_type, answer. Table form_alumnos and I have this query SELECT p.id_pregunta, tr.tipo, COUNT(r.id_respuesta) as cantidad_respuestas FROM encues...
asked by 15.11.2017 / 22:10
2
answers

Make an Insert if there is no value in a column, but make an update

Hi, I wanted to tell you that I want to do an Insert but check if there is a value in a column of the table before doing it, if it is an update only in the value of the column of the same. I pass the code to you as I have it: if(in_array($t...
asked by 28.09.2017 / 05:36
0
answers

Error Select NODEJS [closed]

Good morning, I am designing a REST API with NODEJS and when I insert this query: function getInvTop(req, res) { if (connection) { connection.query('SELECT recvTimeTs, CONVERT_TZ(recvTim...
asked by 29.09.2017 / 09:01
1
answer

Reader does not read in the first if c # mysql

namespace Regext.operaciones { class grillas { MySqlDataReader dr = null; public void llenargrillaclienteempresa(DataGridView grilla_empresa, Bunifu.Framework.UI.BunifuMaterialTextbox txt_buscar_empresa) {...
asked by 21.09.2017 / 23:28