Skip to content

Select within the same table

I’m studying SQL statements and i got stucked in this scenario. The problem is to select data that has associantion column with another in the same table, the result that i want is to select ” Name …

Postgresql Bitmap Heap Scan slow

My table looks like: create table invoices ( id serial not null, data jsonb, modified date, search_string text not null ); I need to search the table with …

Returning id in generic insert using JOOQ

I have a very generic API to insert stuff using JOOQ to soem tables: Is there a way to return id of that inserted record? All primary keys of tables in my db are named “id” so I could ahrdcode it but I cannot find a way to return it and cast to Integer / Long. I’m using JOOQ 3.9.5.