Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 25th, 2005, 06:37 PM
2Fast4YouBR 2Fast4YouBR is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 5 2Fast4YouBR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 42 sec
Reputation Power: 0
Question COALESCE in BLOB(TEXT)?? LIKE ?? = ??

Hello.. I have a test procedure... but I canīt make it work with the COALESCE in the BLOB(TEXT) column ... how can I do it?

I changed from "=" to LIKE ... but keep not working...

Thanks

Patrick

----
SET TERM ^ ;
CREATE PROCEDURE spTbl_test5Clop_SelectSearch
(
"iid" INTEGER,
"iCLOP_FIELD" BLOB SUB_TYPE 1 SEGMENT SIZE 80
)
RETURNS
(
"id" INTEGER,
"CLOP_FIELD" BLOB SUB_TYPE 1 SEGMENT SIZE 80
)
AS
BEGIN
FOR
SELECT
"id",
"CLOP_FIELD"
FROM "test5Clop"
WHERE
COALESCE("test5Clop"."id", 0) = COALESCE(:"iid", "test5Clop"."id", 0) AND
COALESCE("test5Clop"."CLOP_FIELD", '') = COALESCE(:"iCLOP_FIELD", "test5Clop"."CLOP_FIELD", '')
INTO
:"id",
:"CLOP_FIELD"
DO
BEGIN
SUSPEND;
END
END
^
SET TERM ; ^
GRANT SELECT ON "test5Clop" TO PROCEDURE spTbl_test5Clop_SelectSearch;
GRANT EXECUTE ON PROCEDURE spTbl_test5Clop_SelectSearch TO SYSDBA;
----

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > COALESCE in BLOB(TEXT)?? LIKE ?? = ??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway