firebird

【零基础】PostgreSQL从入门到精通

半世苍凉 提交于 2019-12-07 08:16:59
基本了解: PostgreSQL :是以加州大学伯克利分校计算机系开发的 POSTGRES,现在已经更名为PostgreSQL,版本 4.2为基础的对象关系型数据库管理系统(ORDBMS)。PostgreSQL支持大部分 SQL标准并且提供了许多其他现代特性:复杂查询、外键、触发器、视图、事务完整性、MVCC。同样,PostgreSQL 可以用许多方法扩展,比如, 通过增加新的数据类型、函数、操作符、聚集函数、索引。免费使用、修改、和分发 PostgreSQL,不管是私用、商用、还是学术研究使用。 特点与优势: PostgreSQL 是一个自由的对象-关系数据库服务器(数据库管理系统),它在灵活的 BSD-风格许可证下发行。它提供了相对其他开放源代码数据库系统(比如 MySQL 和 Firebird),和专有系统(比如 Oracle、Sybase、IBM 的 DB2 和 Microsoft SQL Server)之外的另一种选择。 PostgreSQL 不寻常的名字导致一些读者停下来尝试拼读它,特别是那些把SQL拼读为"sequel"的人。PostgreSQL 开发者把它拼读为 "post-gress-Q-L"。它也经常被简略念为 "postgres"。 事实上, PostgreSQL 的特性覆盖了 SQL-2/SQL-92 和 SQL-3/SQL-99,首先

Why Index is not used with subquery

◇◆丶佛笑我妖孽 提交于 2019-12-07 06:13:41
问题 This takes 0.001 seconds to execute and it uses index seek SELECT * FROM CUSTOMER WHERE ID IN (1008,1122) Now I have a stored procedure U_VIP which returns the same ID as example one (1008,1122), and it takes only 0.001 second to execute SELECT ID FROM U_VIP //returns (1008,1122) Now when I combine them, it takes around half-a-second to execute and index is not used SELECT * FROM CUSTOMER WHERE ID IN (SELECT ID FROM U_VIP) I've simplified the example above, in actual application the

Best Embedded SQL DB for write performance?

青春壹個敷衍的年華 提交于 2019-12-07 06:09:17
问题 Has anybody done any benchmarking/evaluation of the popular open-source embedded SQL DBs for performance, particularly write performance? I've some 1:1 comparisons for sqlite, Firebird Embedded, Derby and HSQLDB (others I am missing?) but no across the board comparisons... Also, I'd be interested in the overall developer experience for any of these (for a Java app). 回答1: This benchmark from db4o might be helpful. It includes, JavaDB (Built on top of Derby), HSQLDB, SqlLite. It seems HSQLDB

How to resolve Firebird “unavailable database” error on a remote database?

点点圈 提交于 2019-12-07 05:49:47
问题 I have a Firebird 2.0 database running on a remote Windows XP PC. Using the ADO.net connection provider, I configure the connection as follows: Dim x As New FirebirdSql.Data.FirebirdClient.FbConnectionStringBuilder x.Database = "[hostname]:FileShare:/db/REMOTE_SVR.FDB" x.UserID = "SYSDBA" x.Password = "masterkey" Dim y As New FirebirdSql.Data.FirebirdClient.FbConnection(x.ConnectionString) y.Open() Attempting to open the connection raises an FbException , with the message "unavailable

NullPointerException in Netbeans Hibernate Mapping Files and POJOs wizard from Firebird database

回眸只為那壹抹淺笑 提交于 2019-12-07 05:13:36
问题 I'm developing a desktop application using netbeans, hibernate and firebird. The wizard does not give me trouble creating files hibernate.cfg.xml, or HibernateUtil.java But by trying: New -> Other -> Hibernate -> Hibernate Mapping Files and POJOs from Database, using my hibernate.cfg.xml and hibernate.reveng.xml the wizard throws the exception: Hibernate configuration fails with message: java.lang.NullPointerException message.log see exception for details. I'm using Product Version: NetBeans

create collation of firebird(3.0.1) db error on windows but succeed on centos

早过忘川 提交于 2019-12-07 03:27:25
I try to create a collation on a new database(firebird3.0.1 on windows. I follows the steps: create database 'c:\tmp\ebizmis.fdb' user 'SYSDBA' password '123456' default character set utf8 collation unicode; connect 'c:\tmp\ebizmis.fdb' user 'SYSDBA' password '123456'; create collation py for utf8 from UNICODE case insensitive 'LOCALE=zh'; in this step, prompting error: Statement failed, SQLSTATE = HY000 unsuccessful metadata update -CREATE COLLATION PY failed -Invalid collation attributes But on CentOS it is successfull on firebird 3.0.1. When I change the uppercase LOCALE to lowercase:

Ways to Determine the Version of Firebird SQL?

做~自己de王妃 提交于 2019-12-07 03:10:19
问题 Exist any Way to Determine the Version of Firebird SQL is running? using SQL or code (delphi, C++). Bye 回答1: If you want to find it via SQL you can use get_context to find the engine version it with the following: SELECT rdb$get_context('SYSTEM', 'ENGINE_VERSION') as version from rdb$database; you can read more about it here firebird faq, but it requires Firebird 2.1 I believe. 回答2: Two things you can do: Use the Services API to query the server version, the call is isc_service_query() with

Firebird - get all modified fields inside a trigger

ε祈祈猫儿з 提交于 2019-12-06 19:22:44
问题 I need to get all the values which changed in a row and post modifications on other 'audit' table. Can I accomplish this, without writing the conditions for each element from the row? I know the SQL from http://www.firebirdfaq.org/faq133/ which gives you all the conditions for verifications: select 'if (new.' || rdb$field_name || ' is null and old.' || rdb$field_name || ' is not null or new.' || rdb$field_name || 'is not null and old.' || rdb$field_name || ' is null or new.' || rdb$field_name

python fdb, trying to connect to an external firebird 1.5 super server

独自空忆成欢 提交于 2019-12-06 16:50:36
I'm trying to connect to a Firebird 1.5 database that is located on a server, from my local machine with Python fdb libary. but I'm having no luck. the server is windows 2008 server R1 running Firebird 1.5.6 as a service. It also has a System DSN called firebird . How can i connect to it via python? I'm using this code: import fdb db = fdb.connect(host='192.168.40.28', database="C:\databases\database12.GDB", user='admin', password='admin') but it generates this result: Traceback (most recent call last): File "data.py", line 4, in <module> db = fdb.connect(host='192.168.40.28', database="C:

Problem with QIBASE (firebird + Ubuntu)

霸气de小男生 提交于 2019-12-06 14:39:13
Good morning. I've tried to compile QIBASE driver to access FireBird database using sqlbrowser from %QTDIR/demos. But after i filled all fields in sqlbrowser and pushed OK button the program crashed with message: /opt/qt-everywhere-opensource-src-4.7.3/demos/sqlbrowser-build-desktop/sqlbrowser: symbol lookup error: /usr/lib/qt4/plugins/sqldrivers/libqsqlibase.so: undefined symbol: isc_attach_database To compile QIBASE driver i've done following steps: Installing FirebirdCS-2.5.0 to /opt/firebird. Unzipping qt sources to /opt/qt4. Compiling QIBASE driver: cd /opt/qt/src/plugins/sqldrivers/ibase