Questions tagged as 'postgresql'

1
answer

How to access a DB in an AWS EC2 instance, using DataGrip or PgAdmin locally

I have an instance on AWS EC2 that has a Database on Postgres (Not on Amazon RDS). I would like to access it using some tool like DataGrip or PgAdmin on my local computer. Is it possible? How to do? Locally I can use Datagrip and PgAdmin t...
asked by 20.12.2018 / 18:25
2
answers

PostgreSQL database restrictions in commercial application [closed]

What are the restrictions on using PostgreSQL database in my commercial application in C #? What is the size limit? What about simultaneous connections? What problems can I face in connection with other machines?     
asked by 30.06.2018 / 16:24
1
answer

List the 10 best selling products

I need to list the 10 best selling products in a table using Hibernate. The item_venda table has the following columns: quantity product_id community_value value_sub_Total
asked by 03.09.2016 / 16:36
2
answers

___ ___ erkimt SQLSTATE [42703] Undefined column: 7 ERROR: alis.nome_coluna column does not exist LINE 1: [closed] ______ qstntxt ___

I have a page on my system that does a file transfer, it just does an update on the table. I copied the lines of this code and put it to work on another page, changing only the field and table names.

I'm using the Symfony 1.4 framework with MVC for PHP development. In the action of the original function there are two actions one that opens the page and another that makes the update code. In the action of the other page, I copied the action that makes the page open and the code action doing the update, changed the fields and table name.

My role, as I said, is to take the procedure number (original code page) and bring it along to whom the procedure was registered. In the database has a boolean column %code% that receives default %code% and if it is changed it becomes %code% - and if it is %code% I say in my code for it to invert the values.

I did the same thing for the other page. If I do not create the column %code% (new boolean column) my button that does the function of opening the page to transfer, everything works fine, however it does not change anything because it does not have a column in the table created to receive the value% with%. If I create the column %code% my system does not load the data and the error appears saying that the column does not exist.

My action code is this:

%pre%

I am not the creator of the system, I am only giving maintenance (I am a trainee). Can anyone help me?

    
______ azszpr57824 ___

try to put one in? as in the above line between the parameters:  -> set ('d.transferido_den', '?', 'NOT (d.transferido_den)')

It will probably work.

    
______ azszpr58125 ___

I was making a mistake because of the database I was calling. There were 2 with similar names, I was creating in db that was not being called in my file, so the error.

    
___

I have a page on my system that does a file transfer, it just does an update on the table. I copied the lines of this code and put it to work on another page, changing only the field and table names. I'm using the Symfony 1.4 framework with M...
asked by 09.04.2015 / 16:15
2
answers

Update serial ID when a table is NULL

I'm doing a desktop program in java, with the ID of a product being incremented automatically by SERIAL. However, when I delete some element or all, the value of the sequence remains the last one that was added on, and I have to go there in t...
asked by 25.01.2016 / 13:43
2
answers

Auto increment (PostgreSQL)

When I give delete from to the table, then I give select , returns the table without insert none, at the time I give insert again in the table the data id does not restart from 0 / p> In other words, it's like...
asked by 05.07.2018 / 14:15
1
answer

What SQL Script in Postgres to return the fields that belong to PK? [closed]

What SQL script in Postgres to return the fields that belong to the primary key of a specific bank table?     
asked by 01.01.2019 / 05:13
1
answer

Extension pgsql Does not load in PHP7.x

I'm changing from PHP5 to PHP7 on windows 10 (machine development), all my settings went up fine, MySQL, Firebird, PDO MySQL, PDO PGSQL, but the blessed native PGSL does not go up, I've already enabled the line "extension = pgsql "and checked th...
asked by 04.12.2018 / 14:03
2
answers

How to integrate a Web Application with a PostGIS database? What is the best way?

I'm developing a web application using the Azure platform. I chose to use the PostgreSQL database with PostGIS extension, because the application comes down to a WebGis and PostGis is the one that best suits me. I'm using Azure's WebApp feature,...
asked by 09.08.2016 / 21:41
1
answer

Catch only the value and format in 2 decimal places [closed]

Well, I have a python script that queries two different bases for checking values per day, one in SQLSERVER and one in Postgres. I used an if to tell if the values were different and if so, to warn. What happens and what was alarming even...
asked by 07.11.2018 / 19:44