Questions tagged as 'mysql'

0
answers

Export mysql to excel with tabs if possible

I need to export a mysql database to excel, the problem is that the file has 1,200,000 records and excel only supports 1,048,576. How to do this export via command line and separating in tabs to be supported in excel?     
asked by 09.05.2018 / 21:12
1
answer

Error with login screen in C #

I'm trying to make a login screen with the following attributes If Login and password are the same as the typed data enter another if If the ADM (database) attribute is equal to "s" you should open the Main menu if not the meniPrincipa...
asked by 02.05.2018 / 22:35
1
answer

How do I do subtraction and display the result in MYSQL query

I have 3 Tables Vehicles idVeiculo | Placa | Prefixo oleomotor idMotor | idVeiculo | datatroca | kmtroca | horimetroca | proximatroca |idMecanico I have this query below that shows the result of the last changes of each vehicle...
asked by 01.05.2018 / 17:57
1
answer

How to do MYSQL subtraction

How to correctly subtract these two columns in the SQL script? SELECT DISTINCT b.prefixo as idVeiculo, max(datatroca) as datatroca, max(kmtroca) as kmtroca, max(horimetroca) as horimetroca,...
asked by 01.05.2018 / 23:45
0
answers

Hibernate does not connect to MySql database

Hello, I needed to take on the development of a servlet that was in someone else's hands. The same is contained in a Tomcat server and must connect to a MySql database to store data of users registered in their forms. The problem is that I...
asked by 01.05.2018 / 14:50
0
answers

Springboot - JPA - does not migrate relationships in entity and relationship diagram

I'm creating a rest app using Springboot, JPA and as Mysql database. It works fine but it has something strange when I enter the database. I used the Workbench to create the relational entity diagram above the schema generated by JPA, but it...
asked by 08.05.2018 / 04:38
0
answers

Saving PHP and HTML Data

Next, I'm having a form here while filling it up using PHP to validate the data and save it to the MySql database. However, I type the normal date and when I view the table of saved data, the date is the only date that is left undisturbed. Someo...
asked by 08.05.2018 / 02:36
2
answers

How to switch from mysql_real_escape_string to mysqli_real_escape_string () ;?

I'm creating a simple php login page based on in this video . However, after doing exactly as the video describes, I learned that my PHP version has updated and can not use the command mysql_connect . <?php // Get values passe from f...
asked by 05.05.2018 / 15:30
1
answer

How to mount a SELECT to return the last status change of each id?

I have the following table: status_faturas id_fatura | status | data ---------------------------------------- XX-XX-XX | 3 | 2017-01-04 21:00:24 XX-XX-XX | 2 | 2017-01-02 11:10:20 YY-YY-YY | 4 | 2017-01-04 21:00:24 YY-YY-Y...
asked by 05.01.2017 / 00:08
1
answer

dynamic innerHTML in search results

Well, I'm developing a search field for an application where the user types an address or name of an establishment and the system dynamically returns the results, but in the results it is necessary to return the distance between the user and the...
asked by 01.05.2018 / 01:12