Search found 12 matches

by christensen
09.11.2011, 15:33
Forum: Firebird
Topic: Multi table query
Replies: 3
Views: 1662

thanks mdaems,

i solved it in other way.. with alias. "city_name" for the second "tb_city" query.

Code: Select all

select * from tb_client left outer join  tb_city on tb_client.id_city_born=tb_city.city_id left outer  join tb_city city_name on tb_client.id_city_died=city_name.city_id
by christensen
05.11.2011, 16:50
Forum: Firebird
Topic: Multi table query
Replies: 3
Views: 1662

Multi table query

Hi, I'm working on a small project but i have problems querying multiple tables. Here are my tables: Tb_clients - client_id - client_name - client_phone - id_city_born(tb_city) - id_city_died(tb_city) tb_city - city_id - city_name - id_country(tb_country) tb_country - country_id - country_name Now i...
by christensen
20.10.2011, 20:08
Forum: Firebird
Topic: How to insert/update pictures in Firebird
Replies: 1
Views: 3199

How to insert/update pictures in Firebird

Hi, How can i insert pictures in database (Firebird 2.1.3) blob fields? The field in my db are: id_test(Bigint) name_test(Varchar) img_test(Blob, 80, Binary) I can insert the picture but i want to do at once:(id_test is a autoincrement field) 'name_test' and the 'img_test'. For the picture: with ZQu...
by christensen
09.08.2011, 21:39
Forum: Firebird
Topic: Query string too long
Replies: 3
Views: 1598

thanks to both of you
by christensen
08.08.2011, 16:41
Forum: Firebird
Topic: Query string too long
Replies: 3
Views: 1598

Query string too long

Hi, I wan to make a select query with more than 255 characters but i get error. Error: Constant strings can't be longer than 255 chars How can solve this? I'm running Windows 7 Ultimate 32-bit, Lazarus 0.9.30, FPC 2.4.4, Zeoslib 6.6.6, Firebird 2.1.3. Here is a part from my code: frmsetting.qryList....
by christensen
21.03.2011, 21:06
Forum: Firebird
Topic: adding fields to TZquery
Replies: 0
Views: 821

adding fields to TZquery

Hi I use Lazarus 0.9.28.2 beta, Zeos lib 6.6.6 and Firebird 2.1 but unfortunately I have a big problem adding fields to TZquery. Open the field editor > Add Field > Select the fields (parts_name, parts_quant and parts_description) but unfortunately I can add only 2 fields (parts_name and parts_descr...
by christensen
15.08.2010, 08:57
Forum: 6.6 - stable
Topic: Can't install 6.6.6 in lazarus - zcore.pas(78,12) Fatal: Ca
Replies: 4
Views: 931

Hi guys, I have problem installing Zeoslib-6.6.6 on lazarus 0.9.28.2 (in the past i had installed on XP but now on Windows 7 ultimate 32bits cannot). I had compiled the package in order: core, parsesql but the zplain doesn't compile. This are the errors: C:\lazarus\src\plain\ZPlainLoader.pas(174,46)...
by christensen
21.05.2010, 15:37
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

I do not understand you, I was shown this early in the thread: silvioprog Posted: 18.05.2010, 16:48 (No subject) Double quote ("1") mark in integer field, this works? I uses ('1'). But no problems, serves as a lesson for me. 8) For integer i haven't use any quotes only for varchar, like t...
by christensen
20.05.2010, 15:34
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

guidoaerts, thank you very much!
That was the problem!
I use double quotes instead two single quotes!

Now all are working!
by christensen
19.05.2010, 09:29
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

Copy fbclient.dll to your .exe dir, or system32 dir. To more samples: http://www.silvioprog.com.br/downloads/ZEOS_Demos_en.zip (to Lazarus, here in forum has to Delphi) I have this file in System32 directory and i've copy near the exe, but still the same still need fdclientd21.dll, fdclientd.dll fi...
by christensen
18.05.2010, 19:25
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

Thanks for the answer!
i've change the field name but the same problem.

other thing what i do is to change the protocol 'firebirdd-21 Protocol' but doesn't work at all, the fdclientd21.dll and fdclientd.dll are missing.

why is working the select and other no?!
by christensen
18.05.2010, 14:43
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird

Hi guys, Today I’ve installed Zeos 6.6.6 component on Lazarus 0.9.28.2beta till this moment I’ve use SQLbd for Mysql but I want to learn Firebird. I have problems with queries: The select is working well: ZQuery1.Close; ZQuery1.SQL.Clear; ZQuery1.SQL.Add('Select NAME from test'); ZQuery1.Open; The i...