Questions tagged as 'postgresql'

1
answer

PostgreSQL Installation: "The database cluster initialisation failed."

I'm trying to install postgre and it's giving this error. At first I thought I had somehow failed to download the installer but, I downloaded the installer twice and it gives the same problem. Anyone who knows anything gives me that strength ok....
asked by 29.06.2015 / 20:30
1
answer

"create temp table" in trigger in PostgreSQL

Is it possible to create an insert trigger in a "Table1" using "CREATE TEMP TABLE" in its structure and feed a "Table2"?     
asked by 02.06.2015 / 23:33
1
answer

How to restrict some iterations of DB?

Explaining the title: I have a table called projects, these projects can be approved or disapproved. Each insertion or update of a record in the project table is stored in a history table (eg I saved a project and then updated 2 times / In...
asked by 13.01.2015 / 20:34
1
answer

Similarity search PostgreSql [duplicate]

I would like to know if I can do a similarity lookup in a field of type character varying in PostgreSql. For example: The name I have written to the table in the name field is Tauros and I'm looking for Taurros . I wante...
asked by 29.07.2014 / 19:23
4
answers

how to insert image into the database

What kind of variable do I use to store an image in the database? And is there a specific command for this? or just insert as any record? I have a project in the language lua (mobile by corona sdk) that the person has to take a photo and I ne...
asked by 24.05.2017 / 19:48
2
answers

Filter records by month and year in Laravel

I have a form with a field of type month , which sends a value in the format Y-m to my controller. How do I search the records for the selected month and year? I'm using l5-repository I did this, but it does not work: $dat...
asked by 12.09.2016 / 22:35
2
answers

Insert Oracle sequence

Error SQL Error: ORA-00911: Invalid character 00000 - "invalid character" * Cause: identifiers may not start with any ASCII character other than letters and numbers. $ # _ are also allowed after the first character. Identifiers...
asked by 25.05.2017 / 00:17
1
answer

PostgresSQL - Stored procedure

What's wrong with this Stored Procedure? CREATE OR REPLACE FUNCTION public.sp_teste ( IN varchar, OUT codigo integer, OUT setor varchar, OUT grupo integer ) RETURNS SETOF record AS $$ begin return query SELECT co...
asked by 16.04.2015 / 20:50
1
answer

How to search for similar words or synonyms in PostgreSQL

I need to make a search return similar words to me I found the phonetic search it can even be used to refine the search I need, but I do not think that is ideal. For example, in a database I have several professionals, but your professio...
asked by 26.05.2015 / 00:54
2
answers

How do I INNER JOIN in this case?

I am a beginner in PostgreSQL and I need to make a INNER JOIN to relate data from two tables. It took me a long time to figure this out from FOREIGN KEY , but I made the right reference in the database. Now, I have a C # application...
asked by 10.06.2017 / 01:04