Sorry,
currently this is not possible. You always have to initialize the variable via an
additional statement. Maybe we will change this in the future.
Best Regards,
Thomas
Thomas Anhaus
MaxDB&liveCache
SAP AG
mailto: thomas.anhaus@stripped
www.sap.com
Sitz der Gesellschaft/Registered Office: Walldorf, Germany
Vorstand/SAP Executive Board: Henning Kagermann (Sprecher/CEO), Léo Apotheker
(stellvertretender Sprecher / Deputy CEO), Werner Brandt, Claus Heinrich, Gerhard Oswald,
Peter Zencke
Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory Board: Hasso Plattner
Registergericht/Commercial Register Mannheim No HRB 350269
Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche
Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist
Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der
E-Mail ausdrücklich untersagt.
Bitte benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank.
This e-mail may contain trade secrets or privileged, undisclosed, or otherwise
confidential information. If you have received this e-mail in error, you are hereby
notified that any review, copying, or distribution of it is strictly prohibited. Please
inform us immediately and destroy the original transmittal. Thank you for your
cooperation.
> -----Original Message-----
> From: spikerlion@stripped [mailto:spikerlion@stripped]
> Sent: Montag, 24. September 2007 13:56
> To: maxdb@stripped
> Subject: Initialization of variables in functions
>
> Hello,
>
> is there a possibility to initialize variables during the
> deklaration or have I always set a value with an second statement?
>
> Example in MySQL:
> declare <variable> varchar(200) DEFAULT 'test';
> Example in Oracle:
> <variable> VARCHAR2(200) := 'test';
>
> With Oracle or MySQL I only need one statement.
>
>
> Regards,
> Spiker
> --
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>
> --
> MaxDB Discussion Mailing List
> For list archives: http://lists.mysql.com/maxdb
> To unsubscribe:
> http://lists.mysql.com/maxdb?unsub=1
>
>