Subject | Re: [firebird-support] Table name as parameter to stored procedure ? |
---|---|
Author | Martijn Tonies |
Post date | 2007-08-15T11:23:04Z |
Hi,
explanations
and suggestions in there. Have a good search and you'll find it.
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> HI ! I want to create a SP and send table name as parameter,but it doesn'twork .
> Is any solution,thank a lot !I suggest you go through the history of this support list, there are
explanations
and suggestions in there. Have a good search and you'll find it.
> CREATE PROCEDURE GN_MMYYYY(pTBL VARCHAR(15))YEAR,MONTH INTO :YY,:MM
> RETURNS (YY INTEGER,MM INTEGER) AS
> BEGIN
> FOR SELECT DISTINCT YEAR,MONTH FROM :pTBL ORDER BY
> DO BEGIN SUSPEND; ENDMartijn Tonies
> END;
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com