Subject | RE: [firebird-support] Table name as parameter to stored procedure ? |
---|---|
Author | sasha |
Post date | 2007-08-15T13:18:09Z |
>Ok, I'll give you another idea but it's only an idea and if your solution
> The same database is used by 2 distinct application that have
> 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