Questions tagged as 'mysql'

2
answers

QUESTION ABOUT SELECT * FROM

good morning, my question is this, I'm experimenting with database, and I have only 1 record in the database and I show it by the following: SELECT * FROM tabla very well, following this shows me only the record I have, how do I repeat that...
asked by 09.02.2017 / 20:39
2
answers

How to insert a date with c # and MySQL in reverse format?

My database is designed in such a way that the insertion of dates is under the format years / months / days and when sending the content of that control by means of c # to the database, I do not know of the appropriate sentence for convert it an...
asked by 06.11.2016 / 02:59
3
answers

How to count the last records that fit a condition?

I want to count the last records when they meet that: its estado equals 1 if the usuario_id equals 5, and the test_id equals 1 The maximum number of records to count is only 3. These records I have in a table w...
asked by 30.10.2016 / 00:48
2
answers

change the format to display of a date field in mysql with php

How can I change the format that a date is displayed: To show the dates of a table, they are shown as follows: 2016-06-28 2016-06-29 2016-07-01 2016-07-03 And I wanted to change that sample format for one like this: 2016, 06,...
asked by 03.07.2016 / 20:27
3
answers

How to create a trigger in mysql that when deleting a row from a table, I deleted a database?

I have a table in mysql of name Contracts who has the sig. structure: ---------------------- |id|nombre |fecha | ---------------------- |1 |Emp1 |2015-02-12| ----------------------- |2 |Emp2 |2016-02-11| -----------------------...
asked by 14.07.2016 / 00:19
1
answer

Subtract or add month to a [duplicate] date

I am working with Highcharts and I am showing information from my database in the following way: data: [<?php if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo "[Date.UTC("...
asked by 07.07.2016 / 18:43
2
answers

How to connect mysql user to an AWS server?

I am using AWS and I have just installed mysql in an EC2 environment with ubuntu 14, I have created my root user with which I can connect via SSH normally, but I have created another user with grant all privileges so that another person can uplo...
asked by 02.09.2016 / 19:25
2
answers

INSERT SQL and get ID (JEE)

As the title says, this is in java EE , particularly java web. However, it is a simple% SQL query: I have a table with several data, and a id autoincremental:    id, date, text. I use a servlet to add an element to the da...
asked by 14.09.2016 / 18:34
1
answer

Error 1826: Duplicate foreign key constraint name, I need you to help me see where the error comes from

Executing SQL script in server ERROR: Error 1826: Duplicate foreign key constraint name 'idPersona' SQL Code: -- ----------------------------------------------------- -- Table 'GlobalCompany'.'Proveedor' -- ---------------------...
asked by 13.12.2018 / 20:40
3
answers

Add more columns in NOT IN MySQL?

I am new to the forum, it has helped me so much so far. But now I can not find a solution for the following: I have a table in MySQL called "events" and another one called "vehiculos", the application I'm designing is for reserving vehicles w...
asked by 11.12.2018 / 18:21