Questions tagged as 'mysql'

1
answer

Email is not being true

I am having a problem: I am creating a " forgot password" field where the user types the email and if it is in the database it appears as true and redirects to page teste.php ; otherwise, to the index.php page. However, when I...
asked by 02.11.2017 / 02:36
1
answer

Select columns in different tables

I'm using Laravel 5.3 and would like to use columns from two different tables related to foreign key: For example:    Client table id | nome | end_cep 1 | carlos | 69084555 2 | Maria | 69088555    Address table cep...
asked by 26.10.2017 / 15:34
1
answer

Why the "quotation marks" in the INT data?

In the MySQL Workbench , when we do not enter a record by query , and manually, when giving APPLY , the query is displayed before execution. Example of a query consisting of MySQL Workbench : INSERT INTO 'nomedobanco'.'tabela' ('id'...
asked by 13.09.2018 / 11:58
1
answer

Calculating SQL hours

I need to implement a working hours report within a period. My difficulty is this: the records for each day are on different lines and because of this, I'm having a hard time knocking in and out of the right days and I still have to subtract...
asked by 14.09.2018 / 23:22
1
answer

I need to add values from a table

I have a SELECT and in it I display the sum of the sales values of each product, would I have to make a total sum of the table that made the sum? SELECT cadpro.descricao, sum(itensped.total_venda) AS total_venda FROM itenspe...
asked by 08.12.2017 / 13:59
1
answer

Index for MYSQL - ORDER BY influence when creating an index?

I have the following query: SELECT type,name,points FROM clients WHERE type='1' ORDER BY name I've created an index for the "clients" table just above the "type" field. Will adding an ORDER BY over an unindexed field affect query response...
asked by 13.05.2014 / 20:04
1
answer

Word and Mysql formatting

Colleagues, how would you make a Word proposal registered within MySQL, and could it be edited? I tried to use the wysiwyg editors to place and paste, however the Word HTML, after saving, MySQL does not recognize. Solved. I had put the...
asked by 14.05.2015 / 17:56
1
answer

inner join query, left join mysql

I'm working with the following tables: CREATE TABLE livro ( Id_livro int NOT NULL, Nome_livro CHAR(40) NOT NULL, Pg int, Edicao int, Editora int NOT NULL, Assunto int NOT NULL, Preco decimal (5,2) NOT...
asked by 10.06.2017 / 19:10
1
answer

Why create a table in MySQL?

I'm learning how to work with MySQL and I'm looking at some examples of how to work with more than one table, as an example below: Id Nome Faculdade_id 101 Amanda 11 102 Bianca 12 103 Carla 13 104 Da...
asked by 03.04.2017 / 21:29
1
answer

Customize List within Admin Panel - Wordpress

I'm in a project, which I need to make some changes exactly inside the Wordpress panel. More specifically on a page that lists a specific post list. I need to add a custom search field with a specific field. I also need to add a few more c...
asked by 04.04.2017 / 19:41