Questions tagged as 'mysql'

2
answers

Error trying to insert values in MySQL

Well, I was trying to make an application that inserts products and allows you to view it on the phone through the database, but when I try to create the product the application closes and it appears in my LogCat: 2-18 15:55:27.667: I/Choreogr...
asked by 18.02.2015 / 17:01
1
answer

Erase data by checkbox

Well I'm here with a problem I have in my system categories in which I enter the products in the various categories that can choose through checkbox only I am now facing a problem and I want to delete a record eg: p> I have a checkbox selected...
asked by 16.02.2015 / 19:34
1
answer

Application presenting this error: Error parsing data org.json.JSONException [closed]

I was trying to make an application for android with connection to MySQL through webservice and it was giving some problems, but I managed to solve it, but it appeared that when I try to see the products registered in my app my LogCat appears th...
asked by 19.02.2015 / 18:57
1
answer

Error Code: 1048, SQL State: 23000 Column 'colegiado_id' can not be null

Hello, this error "[Error Code: 1048, SQL State: 23000] Column 'colegiado_id' cannot be null" It happens when I try to run the SQL command below directly in MySQL: start transaction; INSERT INTO EspecialistasColegiados (colegiado_id, esp...
asked by 04.03.2015 / 22:06
3
answers

Ignore certain values in MySQL

$query = "SELECT COUNT(status) FROM $nomeTabela WHERE status=$numeroStatus AND nomePessoa='$nomePessoa'"; Can you optimize this? There are statuses from 0 to 10 (in this query I need to query only on statuses from 1 to 10 ), I wanted to ign...
asked by 30.06.2015 / 20:14
1
answer

Avoiding dump for MySQL users

For a specific MySQL user, is there a way to lock it so that it does not do the Data Export (DUMP) of a specific table, or the entire database? I could not find a solution ... How do you deal with this? Thank you!     
asked by 11.02.2015 / 12:58
1
answer

Followers system php mysql

Good people, I need to make a follow-up system for my site users like notifications but I never did and I do not know where to start, I needed an idea how I can do this system.     
asked by 03.02.2015 / 18:14
1
answer

Counting by date difference

I need to make a MySQL query that does the following: Count the number of times that the same record appears with a difference greater than 15 days, that is: Record 1 - Date: 01/20/2015 Record 2 - Date: 01/22/2015 Record 3 - Date: 03/...
asked by 14.04.2015 / 04:18
1
answer

Select two tables and insert into two tables at the same time

I have four tables tabela A aic002 campos : codigo data nome especie valor rg cpf exped Tabela B excli campos codigo nome rg cpf exped tabela C imovel Campos codigo imovel rua bairro cidade estado tabela D escritura codigo data especi...
asked by 02.02.2015 / 23:04
1
answer

sql syntax error

I'm trying to do an insert in the database but I'm having a syntax problem, I still can not identify the error. $sql='INSERT INTO tabela ( nome, nit, rg, cpf, ) VALUES'; foreach($dados as $li...
asked by 09.03.2015 / 18:52