Questions tagged as 'firebird'

2
answers

Group [group by] SQL Firebird

I would like to know if there's any way I can do a query where I can bring fields that are not in my group by . I have the following code: select sum(TAB_FATURAMENTO.vl_item),CLIENTE.insc_cnpj from TAB_FATURAMENTO inner join (IMP_PROC...
asked by 07.08.2017 / 17:09
2
answers

Inquiry bringing duplicate items + product code

Hello, I am doing an SQL query on my Firebird server. I made the query using the following syntax: select ds_produto_servico, count(ds_produto_servico) from tb_produto_servico group by ds_produto_servico having count(ds_produto_servico) > 1...
asked by 07.07.2017 / 14:54
1
answer

How to use Linq2db.Firebird?

I downloaded Linq2db.Firebird using the following code: Install-Package linq2db.Firebird The installation was successful, but I can not find in Visual Studio anything related to it, I do not know how to use it and I did not find a go...
asked by 13.01.2017 / 15:10
1
answer

Insert timestamp type into firebird database

Error in insert in firebird database, field DataCadastro type timestamp does not accept string . INSERT INTO VENDA(CODIGO, NRO_VENDA, DATA_VENDA, VALOR_TOTAL_PRODUTOS, VALOR_ACRESCIMO, VALOR_DESCONTO, VALOR_TOTAL_VEN...
asked by 03.01.2017 / 16:31
1
answer

How to recover the last record inserted in Firebird database?

My Sales table has a Code field with auto-increment and I need to retrieve this code to insert into an associative table. string sql = $"INSERT INTO VENDA(NRO_VENDA,DATA_VENDA,VALOR_TOTAL_PRODUTOS,VALOR_ACRESC‌​IMO,VALOR_DESCONTO,V‌​ALOR_TOTAL...
asked by 04.01.2017 / 13:15
3
answers

Insert decimal variable in firebird

I'm doing an Insert in the Firebird database in a UnitUnit (decimal) field, but the decimal places in the table do not appear. C # code: public decimal ValorUnitario { get; set; } produto.ValorUnitario = Convert.ToDecimal(5.50); string sql...
asked by 04.01.2017 / 20:56
1
answer

Error passing script from a Firebird database table to PostgreSQL

I'm trying to pass a script to create and insert data from a Firebird database to PostgreSQL, however in some tables syntax error is occurring, I'm using the SQL Manager Interbase & Firebird to generate the * .sql files from my Firebird data...
asked by 07.12.2016 / 16:51
1
answer

It is possible to generate a .CSV file from a table in a Firebird database

I need to Generate a .CSV file from a table in my Firebird database, is there any known tool that could help me?     
asked by 28.11.2016 / 17:08
1
answer

Receive Firebird exception message in PHP

My script PHP is not receiving the exceptions message that is generated by Firebird . I have a class that connects to DB, runs sql, and disconnects. By debugging the script, I saw that exception is being generated b...
asked by 20.01.2017 / 00:00
1
answer

Select using Join with Distinct

I have two tables: tb_movement | cod | dt_producao | qt_prod | |-----|--------------|---------| | 1 | '04.08.2016' | 10 | | 2 | '04.08.2016' | 5 | | 3 | '09.08.2016' | 12 | | 4 | '10.08.2016' | 3 | tb_ro...
asked by 24.08.2016 / 15:07