firebird

Convert an unknown database file from a windows software into a MySqli Database

有些话、适合烂在心里 提交于 2019-12-13 11:19:58
问题 I have installed a software in my system and I have a lot of data from client in it. All the files which are inside DB folder of this software are with extensions for each individual party. I want to to use these files to get converted to a MySqli Database. Sample file from DB folder can be download from here I have tried understanding for firebird service which this software uses to connect with these database files to get the things. I want to extract database and import it inside MySqli

sql and fifo simple select

无人久伴 提交于 2019-12-13 09:12:57
问题 I have data like this: Id Price Quantity Value 1 1000 4 4000 2 1000 4.5 4500 3 1000 5 5000 and I would ask for database row when the price is the sum of for example 2500. I expected to answer this: Id Price Quantity Value 1 1000 4 4000 2 1000 4.5 4500 3 500 5 2500 Of could I could use while loop but I think select will be more smart. My database is Firebird. I have 3 lines in database for example buy dollars. first, I bought $ 1000 for 4 PLN, second I bought $ 1000 for 4.5 PLN, and the third

Trigger on Update Firebird

余生长醉 提交于 2019-12-13 05:42:37
问题 Whenever the field sync is updated without the flag being YES I need to set that field to NULL . CREATE TRIGGER my_trigger FOR customers AFTER UPDATE as BEGIN if(new.sync <> 'YES') then new.sync = NULL; end But I keep receiving the error: Dynamic SQL Error SQL error code = -104 Unexpected end of command - line 6, column 26 I believe line 6 is then new.sync = NULL ? I thought the problem might be the use of ; but it's not, because if I remove it then it gives the same error but in the line 7 .

Datasnap\FireDAC: Query executed twice

≡放荡痞女 提交于 2019-12-13 05:38:55
问题 I have the following problem: 1) I use Delphi XE7 to develop a 3-layer system. 2) The server layer, created with datasnap using REST. 3) I use Firebird as database and the access is performed with FireDAC. 4) I have a sequence with value 01 . 5) I created the following query in the server layer: Select GEN_ID (gen_my_sequence, 1) from rdb $ database 6) On the server returns the sequence value in the query is: 02 . 7) But the client layer returns 03. I do not understand why the query is

Call stored procedure (firebird database) with php PDO [closed]

旧城冷巷雨未停 提交于 2019-12-13 04:47:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have some stored procedures on a firebird database. Now I want to call them with PHP. SP have a suspend code and a return value and the SP need some input parameters.. Can someone help me... 回答1: Firebird doesn't have CALL syntax. How to call the SP depends on whether it is selectable (has a SUSPEND statement

Hibernate 4 Delete from HT_tables where IN clause Token unknown “,”

不羁岁月 提交于 2019-12-13 04:06:02
问题 Using Hibernate 4, the below generated query failed : delete from ErpEmploye_AUD where (code, folder_codeId, REV) IN (select code, folder_codeId, REV from HT_ErpEmploye_AUD where hib_sess_id=1) Firebird Exception : SQL error code = -104 Token unknown - line 1, column 39 , In the org.hibernate.hql.spi.TableBasedDeleteHandlerImpl Class there is https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/hql/spi/TableBasedDeleteHandlerImpl.java private

Firebird pdf blob save as pdf-file by PHP

我们两清 提交于 2019-12-13 03:55:54
问题 I have a blob which we receive from a Firebird 3.0 database. if($dbh = ibase_connect($db,$username,$password, 'UTF-8')){ echo "Connecton steht zur Firebird DB steht! <br>"; $sql = "SELECT MEMO FROM DMS where ID = '44'"; // Execute query $rc = ibase_query($dbh, $sql); // Get the result row by row as object $data = ibase_fetch_object($rc); $blob_data = ibase_blob_info($data->MEMO); $blob_hndl = ibase_blob_open($data->MEMO); $inhalt = ibase_blob_get($blob_hndl, $blob_data[0]); With ibase_blob

Firebird database tuning for multiprocessor

只愿长相守 提交于 2019-12-13 02:56:26
问题 I'm running a software called Fishbowl inventory and it is running on a firebird database (Windows server 2003). At this time the fishbowl software is running extremely slow when more then one user accesses the software. I'm wondering if anyone could provide some information on tuning the database or best practices? We are currently running a dell power edge 2700 dual quad core with 4 gig's of ram. Any help would be greatly appreciated. Thank you in advance. Robert 回答1: I do report

Spring JDBC and Firebird Database

荒凉一梦 提交于 2019-12-13 02:21:04
问题 Is anyone actually using Firebird 2.1 with Spring JDBC? For test purposes I have three simple one table databases set up in MySQL, Postgres and Firebird. I have no problems connecting and getting data from the MySQL or Postgres. But I just cannot get Firebird to work. All I need to change are the jdbc.properties and the pom.xml dependecies for the correct .jar files. It's that easy. I know that my connection parameters are correct for the Firebird database as I have checked them in a minimal

select date column greater then specific

风格不统一 提交于 2019-12-13 02:07:35
问题 I have the following criteria in where clause: cat_product.datetime > '2012-09-18 11:24:54' In the result: 18.09.2012 11:24:54 18.09.2012 11:34:51 18.09.2012 12:07:12 The problem in that the result contain 18.09.2012 11:24:54 . Why? In the criteria write > operator not >= . 回答1: Problem with milliseconds. Needs to convert to a format which do not have miliseconds. Such as : SELECT CONVERT(VARCHAR,GETDATE(),120) For you, it should be something like: CONVERT(VARCHAR, cat_product.datetime,120) >