Questions tagged as 'select'

1
answer

Query using WHERE

I need to query in a table called controls: I have the column CH which is the hourly load in minutes and I have the column SETOR which are the sectors that participated in some training. I need to make an appointment wh...
asked by 21.08.2018 / 15:37
2
answers

Doubt with select in if

Good afternoon I was trying to adapt a code I already had here to be able to by a watermark on a photo. But there's plenty of time I do not deal with html or php. So could you guys give me this help to fix the problem of selecting the correct...
asked by 03.11.2016 / 19:02
2
answers

Infinite listing with mysqli_fetch_array ()

My code returns the database query, but lists only the last item entered, and lists it infinitely. I wonder where I'm going wrong. <?php //Início da listagem $servidor = 'localhost'; $usuario = 'root'; $senha = ''; $banco = 'portfolio';...
asked by 13.09.2017 / 21:53
1
answer

Select a checkbox field, if one or two options are chosen in the select field

I have a selection field with 4 options. If option 1 is chosen, I want it to check a checkbox field (WHITE) How do I     
asked by 17.10.2018 / 21:19
2
answers

Remove options from select with jQuery

I'm trying to get all the option's of a select that I have, but I've already used everything that is jQuery code, but they do not. I am making a filter where the person will select a city and after selecting jQuery makes a reques...
asked by 27.07.2016 / 15:39
1
answer

CONDITION WITHIN WHERE CLAUSE

Good afternoon!   I have a task to perform a select, but the parameters are passed as variables and I need to treat the input of one of these variables with the following logic: if & CT is not null, then I add in the condition of select the...
asked by 20.09.2018 / 18:55
2
answers

Doubt SELECT Mysql

In a given select I can reference two tables by foreign keys. Ex: IdA / IdB IdA = IdB Table A has a column named C Table B has three columns called D, E, F Both tables have similar contents for returns in SELECT Ex: Select ... fr...
asked by 19.09.2018 / 13:06
1
answer

SQl in PostgreSQL: No Repeat Values of a Table field

I have a select that displays the names, date and values paid by clients. I have to display a list without repeating the names. SELECT c.name, p.created_at, p.amount_paid FROM payments as p, clients as c WHERE p.crea...
asked by 27.10.2017 / 16:31
1
answer

Using subselect in oracle. Why does the error occur?

I'm trying to use this code below, but oracle returns me the following error:    ORA-00907: right parenthesis not found   00907. 00000 - "missing right parenthesis"   * Cause:   * Action:   Error on line: 30 Column: 10 I can not identify...
asked by 21.02.2017 / 15:42
2
answers

Assign value in SQL variable

How do I make a select that assigns the value "10" in all of the games column? NOTE: Do not give update in the table. /*minha_tabela*/ codigo jogos --------------------- 1 10 2 10 3 10...
asked by 15.04.2017 / 04:18