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 21st, 2005, 03:26 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
Firebird and temporary tables.

I have one more question.

Is there in Firebird something like temporary tables? I used this many times in my stored procedures in MSSQL, and here I can't find nothing like that.

Thank you again.

Reply With Quote
  #2  
Old April 22nd, 2005, 05:18 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 34 m 25 sec
Reputation Power: 8
Not officially, but there is some implementation of temp tables.
I am using Firebird 7-8 years (under name Interbase first ), and never needed temp tables. You can simulate them using stored proc's...

--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net
USAID TAMP Senior Programmer
* FirebirdSQL Foundation member.
- Join today at http://www.firebirdsql.org/ff/foundation
* JEDI VCS contributor
http://jedivcs.sourceforge.net/
* Firebird and Fyracle news
http://www.fyracle.org/shownews.php

Reply With Quote
  #3  
Old April 22nd, 2005, 07:26 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
[QUOTE=fikret]Not officially, but there is some implementation of temp tables.
I am using Firebird 7-8 years (under name Interbase first ), and never needed temp tables. You can simulate them using stored proc's...


I don't know if you understand me. I'm using temporary tables in stored procedures in MSSQL. They are active only in stored procedure. And it is a very effective tool. I think...

How do you simulate them in Firebird through stored proc's?

Thank you.

Reply With Quote
  #4  
Old April 22nd, 2005, 07:56 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 34 m 25 sec
Reputation Power: 8
[QUOTE=smrtelnik
I don't know if you understand me. I'm using temporary tables in stored procedures in MSSQL. They are active only in stored procedure. And it is a very effective tool. I think...

How do you simulate them in Firebird through stored proc's?

Thank you.[/QUOTE]

I DO understand
In Firebird you can create selectable stored procedures...

--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net
USAID TAMP Senior Programmer
* FirebirdSQL Foundation member.
- Join today at http://www.firebirdsql.org/ff/foundation
* JEDI VCS contributor
http://jedivcs.sourceforge.net/
* Firebird and Fyracle news
http://www.fyracle.org/shownews.php

Reply With Quote
  #5  
Old April 22nd, 2005, 08:12 AM
smrtelnik smrtelnik is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 11 smrtelnik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 43 m 38 sec
Reputation Power: 0
Ok. Now, if I understand, in Firebird you can make stored procedure, that returns table (or set of rows), you can use in another stored procedure?
Is it right?
Ok, thank you very much Fikret.

Reply With Quote
  #6  
Old April 23rd, 2005, 06:46 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 277 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 48 m 14 sec
Reputation Power: 9
Wink

Quote:
Originally Posted by smrtelnik
Ok. Now, if I understand, in Firebird you can make stored procedure, that returns table (or set of rows), you can use in another stored procedure?
Is it right?

yes
__________________
My home page: http://www.firebirdsql.org and work place :http://www.reea.net

Reply With Quote
  #7  
Old June 2nd, 2007, 02:04 AM
John Irvine John Irvine is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 1 John Irvine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 33 sec
Reputation Power: 0
Firebird Stored Procedures / MSSQL

Quote:
Originally Posted by mariuz
yes

Following this thread I thought I'd mention that in MSSQL you can create a temporary table based on the results of a select / other criteria, therefore it is dynamic. Thats the real power. How can you do this in Firebird?
Thanks
John

Reply With Quote
  #8  
Old June 2nd, 2007, 05:27 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,073 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 4 Weeks 4 h 19 m 37 sec
Reputation Power: 281
Quote:
Originally Posted by John Irvine
... in MSSQL you can create a temporary table based on the results of a select / other criteria, therefore it is dynamic. ... How can you do this in Firebird? ...
As Fikret said
Quote:
In Firebird you can create selectable stored procedures...
which is very dynamic.
BTW, Firebird 2.1 (currently in alpha stage) supports global temporary tables.

Reply With Quote
  #9  
Old June 2nd, 2007, 08:13 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 857 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 11 h 14 m 52 sec
Reputation Power: 19
Quote:
Originally Posted by John Irvine
Following this thread I thought I'd mention that in MSSQL you can create a temporary table based on the results of a select / other criteria, therefore it is dynamic. Thats the real power.

How can you do this in Firebird?
John

By changing the values of the parameters you pass into your stored procedure.

Clive

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Firebird and temporary tables.


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

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT