Subject | RE: [firebird-support] Table name as parameter to stored procedure ? |
---|---|
Author | Ionut Ichim |
Post date | 2007-08-15T13:57Z |
I'll try your suggestion too.Thanks again.
sasha <selectnull@...> wrote: >
works better for you, no harm done.
Since you have different database structures you still might use a view:
In db1:
create view monthyear as select distinct month, year from table_in_db1
In db2:
create view monthyear as select distinct month, year from table_in_db2
That way from both applications you fill your combo with values the same
way, select month, year from monthview;
Sasha
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
[Non-text portions of this message have been removed]
sasha <selectnull@...> wrote: >
> The same database is used by 2 distinct application that haveOk, I'll give you another idea but it's only an idea and if your solution
> only some tables in common.So,in aplication 1 user must
> select from a combo year and month and the same thing in
> application 2 but from other table.So I use one SP for both.
>
works better for you, no harm done.
Since you have different database structures you still might use a view:
In db1:
create view monthyear as select distinct month, year from table_in_db1
In db2:
create view monthyear as select distinct month, year from table_in_db2
That way from both applications you fill your combo with values the same
way, select month, year from monthview;
Sasha
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
[Non-text portions of this message have been removed]