|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I've been writing SPs for MSSQL T-SQL for many years but I'm new to Firebird and SQL99 stuff. Here's a simple (I thought) SP that won't compile..
CREATE PROCEDURE SP_PLAYERFIND ( PLAYERNAME VARCHAR(16) ) RETURNS ( PLAYERKEY NUMERIC(15,0) ) AS BEGIN SELECT PKEY FROM PLAYERS WHERE PLAYERNAME=:PLAYERNAME INTO :PLAYERKEY; SUSPEND; END The error returned by IBEasy SQL tool is "Unexpected end of command". I've tried many different ways of entering this in various upper/lower case, with/without semi-colons, with/without "suspend" combinations. I always get an error when I try to compile it. I'd -greatly- appreciate your expert advice. |
|
#2
|
||||
|
||||
|
Declare The Playerkey As Integer
"returns ( Playerkey Integer )"
__________________
If i've been helpful, please add to my reputation. My unfinished site: http://www.dever.ro |
|
#3
|
|||
|
|||
|
Quote:
Can you tell us version of Firebird? It compiles and runs fine here (FB 1.5.2). I haven't tried FB 2.0 yet... -- Best regards, Fikret Hasovic http://fikret.fbtalk.net USAID TAMP Senior Programmer * Firebird 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 |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Error in simple Stored Procedure |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|