MySQL stored procedures OUT or INOUT parameters
MySQL stored procedures OUT or INOUT parameters
am 18.09.2008 16:00:48 von Stf
How to use OUT or INOUT parameters of MySQL's stored procedures in PHP?
STF
============================================================ ===========
http://eisenbits.homelinux.net/~stf/ . My PGP key fingerprint is:
9D25 3D89 75F1 DF1D F434 25D7 E87F A1B9 B80F 8062
============================================================ ===========
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: MySQL stored procedures OUT or INOUT parameters
am 19.09.2008 08:44:09 von Goltsios Theodore
:
> How to use OUT or INOUT parameters of MySQL's stored procedures in PHP?
>
> STF
>
> ============================================================ ===========
> http://eisenbits.homelinux.net/~stf/ . My PGP key fingerprint is:
> 9D25 3D89 75F1 DF1D F434 25D7 E87F A1B9 B80F 8062
> ============================================================ ===========
>
>
I think that the manual is quite clear on this:
http://dev.mysql.com/doc/refman/5.1/en/call.html
You use a way to query the database like PDO or mysqli and you wite sql.
Is there something specific that you want to ask?
--
Thodoris
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: MySQL stored procedures OUT or INOUT parameters
am 19.09.2008 13:30:13 von Stf
Thodoris wrote:
> I think that the manual is quite clear on this:
>
> http://dev.mysql.com/doc/refman/5.1/en/call.html
>
> You use a way to query the database like PDO or mysqli and you wite sql.
Yes, I've already found that multi-step way before... I was just
wondering if anything got better since with regard to this.
Apparently not.
STF
============================================================ ===========
http://eisenbits.homelinux.net/~stf/ . My PGP key fingerprint is:
9D25 3D89 75F1 DF1D F434 25D7 E87F A1B9 B80F 8062
============================================================ ===========
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: MySQL stored procedures OUT or INOUT parameters
am 11.10.2008 01:08:49 von Post-No-Reply TUDBC
QnkgdXNpbmcgVFVEQkMgKGh0dHA6Ly93d3cudHVkYmMub3JnKSwgeW91IGNh biBjYWxsIHN0b3Jl
ZCBwcm9jZWR1cmVzCmV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Pgo+ICBBcHBhcmVudGx5IG5vdC4K Pgo+ICBTVEYKPgo+
ID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09
PT09PT09PT09PT09PT09Cj4gIGh0dHA6Ly9laXNlbmJpdHMuaG9tZWxpbnV4 Lm5ldC9+c3RmLyAu
IE15IFBHUCBrZXkKPiBmaW5nZXJwcmludCBpczoKPiAgOUQyNSAzRDg5IDc1 RjEgREYxRCBGNDM0
ICAyNUQ3IEU4N0YgQTFCOSBCODBGIDgwNjIKPiA9PT09PT09PT09PT09PT09 PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQo+ Cj4gIC0tCj4gIFBI
UCBEYXRhYmFzZSBNYWlsaW5nIExpc3QgKGh0dHA6Ly93d3cucGhwLm5ldC8p Cj4gIFRvIHVuc3Vi
c2NyaWJlLCB2aXNpdDogaHR0cDovL3d3dy5waHAubmV0L3Vuc3ViLnBocAo+ Cj4K
Re: MySQL stored procedures OUT or INOUT parameters
am 11.10.2008 02:06:50 von Fergus Gibson
2008/10/10 Post-No-Reply TUDBC :
> By using TUDBC (http://www.tudbc.org), you can call stored procedures
> easily.
Your post was an excellent answer to the question, "How do I call
stored procedures easily with TUDBC?" Unfortunately, that is not what
the original poster asked. In fact, no one has ever asked that
question on this list. Ever. Posting to the list from a generic
"no-reply" address seems pretty rude.
But setting aside the irrelevance of your post, the example does not
seem "EZ" at all. In fact, it seems quite a bit more complicated than
the comparable code for PDO or mysqli, not to mention both
unnecessarily verbose and simultaneously cryptic.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: MySQL stored procedures OUT or INOUT parameters
am 11.10.2008 02:52:50 von Post-No-Reply TUDBC
I kindly disagree. The original post asked "How to use OUT or INOUT
parameters of MySQL's stored procedures in PHP?" by STF.
To quote STF again in a later post "Yes, I've already found that
multi-step way before... I was just wondering if anything got better
since with regard to this. Apparently not."
If you're aware of what developers need to face when dealing with when
trying to get an OUT parameter from a stored procedure, there are
multi-step way workaround which is cumbersome.
My reply is directly offering an alternate way in PHP to solve this
problem faced by the original post.
On 10/10/08, Fergus Gibson wrote:
> 2008/10/10 Post-No-Reply TUDBC :
>
> > By using TUDBC (http://www.tudbc.org), you can call stored procedures
> > easily.
>
>
> Your post was an excellent answer to the question, "How do I call
> stored procedures easily with TUDBC?" Unfortunately, that is not what
> the original poster asked. In fact, no one has ever asked that
> question on this list. Ever. Posting to the list from a generic
> "no-reply" address seems pretty rude.
>
> But setting aside the irrelevance of your post, the example does not
> seem "EZ" at all. In fact, it seems quite a bit more complicated than
> the comparable code for PDO or mysqli, not to mention both
> unnecessarily verbose and simultaneously cryptic.
>
>
> --
>
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: MySQL stored procedures OUT or INOUT parameters
am 11.10.2008 13:31:19 von Tim Hawkins
Until TUDBC is available under an accredited FOSS license, nobody in
their right mind is going to use it in any project that
may need to be ipr encumbrement free at a future date.
Posting solutions that pertain to a proprietary technology on a list
predominately dedicated to technologies that do meet that
requirement is bordering on being classified as commercial spam.
On 11 Oct 2008, at 01:52, Post-No-Reply TUDBC wrote:
> I kindly disagree. The original post asked "How to use OUT or INOUT
> parameters of MySQL's stored procedures in PHP?" by STF.
>
> To quote STF again in a later post "Yes, I've already found that
> multi-step way before... I was just wondering if anything got better
> since with regard to this. Apparently not."
>
> If you're aware of what developers need to face when dealing with when
> trying to get an OUT parameter from a stored procedure, there are
> multi-step way workaround which is cumbersome.
>
> My reply is directly offering an alternate way in PHP to solve this
> problem faced by the original post.
>
>
> On 10/10/08, Fergus Gibson wrote:
>> 2008/10/10 Post-No-Reply TUDBC :
>>
>>> By using TUDBC (http://www.tudbc.org), you can call stored
>>> procedures
>>> easily.
>>
>>
>> Your post was an excellent answer to the question, "How do I call
>> stored procedures easily with TUDBC?" Unfortunately, that is not
>> what
>> the original poster asked. In fact, no one has ever asked that
>> question on this list. Ever. Posting to the list from a generic
>> "no-reply" address seems pretty rude.
>>
>> But setting aside the irrelevance of your post, the example does not
>> seem "EZ" at all. In fact, it seems quite a bit more complicated
>> than
>> the comparable code for PDO or mysqli, not to mention both
>> unnecessarily verbose and simultaneously cryptic.
>>
>>
>> --
>>
>> PHP Database Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: MySQL stored procedures OUT or INOUT parameters
am 12.10.2008 01:15:36 von Post TUDBC
TUDBC has recently moved to open-source GPL, similar to how MySQL
works. (You probably got the impression that it had proprietary
license, maybe because some the obsolete webpages still referred to
the old license, so I have corrected those obsolete web pages.)
I am not familiar with FOSS, but my reading showed that GPL is the
most used open-source license, which was why I chose GPL.
On 10/11/08, Tim Hawkins wrote:
> Until TUDBC is available under an accredited FOSS license, nobody in their
> right mind is going to use it in any project that
> may need to be ipr encumbrement free at a future date.
>
> Posting solutions that pertain to a proprietary technology on a list
> predominately dedicated to technologies that do meet that
> requirement is bordering on being classified as commercial spam.
>
> On 11 Oct 2008, at 01:52, Post-No-Reply TUDBC wrote:
>
>
> > I kindly disagree. The original post asked "How to use OUT or INOUT
> > parameters of MySQL's stored procedures in PHP?" by STF.
> >
> > To quote STF again in a later post "Yes, I've already found that
> > multi-step way before... I was just wondering if anything got better
> > since with regard to this. Apparently not."
> >
> > If you're aware of what developers need to face when dealing with when
> > trying to get an OUT parameter from a stored procedure, there are
> > multi-step way workaround which is cumbersome.
> >
> > My reply is directly offering an alternate way in PHP to solve this
> > problem faced by the original post.
> >
> >
> > On 10/10/08, Fergus Gibson wrote:
> >
> > > 2008/10/10 Post-No-Reply TUDBC :
> > >
> > >
> > > > By using TUDBC (http://www.tudbc.org), you can call stored procedures
> > > > easily.
> > > >
> > >
> > >
> > > Your post was an excellent answer to the question, "How do I call
> > > stored procedures easily with TUDBC?" Unfortunately, that is not what
> > > the original poster asked. In fact, no one has ever asked that
> > > question on this list. Ever. Posting to the list from a generic
> > > "no-reply" address seems pretty rude.
> > >
> > > But setting aside the irrelevance of your post, the example does not
> > > seem "EZ" at all. In fact, it seems quite a bit more complicated than
> > > the comparable code for PDO or mysqli, not to mention both
> > > unnecessarily verbose and simultaneously cryptic.
> > >
> > >
> > > --
> > >
> > > PHP Database Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php