Ask a Question related to PHP Development, Design and Development.
-
Chris Mosser #1
advanced SQL
Until recently, I thought MySQL, and SQL in general was no problem....doing
simple INSERTS, DELETES, and UPDATES;...then I heard about triggers,
transactions, and stored procedures which I only slightly know what they
are. Can any one point me to a good tutorial on these advanced topics...I
am already googleing around...but am wondering if any one has any specific
places for me to look.
--
Chris Mosser
Chris Mosser Guest
-
Need Help with Advanced SQL Query
It's advanced for me, at least. I have three tables that I need to use: Product (product_id and product_title are the fields) shipRegion... -
advanced cluster help
hi we have servers setup as follows 2003 cfmx 7 server A instance 1 and 2 server B instance 3 and 4 I need to share sessions in... -
ok advanced for me, how do I...
http://www.azcdr.com/projects/wuwac5/index.htm In the larger blue panel, I'd like to have a flip down door and reveal a host of other controls.... -
Advanced Project
I'd write that code a bit differently. For a start, I like to set a property to refer to the sprite so I don't have to type so much. Then, you need... -
No advanced tab in XP Pro Lan Properties
I have 2 pc's networked (both with Windows XP Pro) I am trying to disable the xp firewall, but when I go to the network LAN properties screen, I... -
Nikolai Chuvakhin #2
Re: advanced SQL
"Chris Mosser" <cmosser@comcast.net> wrote in message
news:<-PmcnabKKP3wupOiXTWJiA@comcast.com>...The best place to look is the language reference manual for>
> Until recently, I thought MySQL, and SQL in general was
> no problem....doing simple INSERTS, DELETES, and UPDATES;
> ...then I heard about triggers, transactions, and stored
> procedures which I only slightly know what they are.
> Can any one point me to a good tutorial on these advanced
> topics...
the database you are working with.
As to MySQL, it does not support triggers and stored procedures
(the word is, in version 5 it will). Transactions, however, are
supported:
[url]http://www.mysql.com/doc/en/Transactional_Commands.html[/url]
Cheers,
NC
Nikolai Chuvakhin Guest
-
Louis-Philippe Huberdeau #3
Re: advanced SQL
PHP will not support triggers and stored procedures until MySQL5
(currently in development but no ETA).
As for Transactions, those are availible if you use InnoDB or BerkleyDB
storage (and not the default MyISAM). To use them in PHP, you will need
to use the mysqli library (MySQL Improved), which should be shipped with
PHP5 but will probably be in PHP4 someday. The library is currently
availible, you can probably get it from the CVS.
Transactions are quite simple:
Do normal queries and for them to apply on the 'real' database, you need
to commit. Otherwise, it will do a rollback and all changes you made
will disapear.
I don't know about any tutorial, but I hope those informations were
useful. You might want to search for PHP + MySQL + InnoDB and such on
your favorite search engine.
Chris Mosser wrote:> Until recently, I thought MySQL, and SQL in general was no problem....doing
> simple INSERTS, DELETES, and UPDATES;...then I heard about triggers,
> transactions, and stored procedures which I only slightly know what they
> are. Can any one point me to a good tutorial on these advanced topics...I
> am already googleing around...but am wondering if any one has any specific
> places for me to look.
>
> --
> Chris Mosser
>
>Louis-Philippe Huberdeau Guest
-
Chris Mosser #4
Re: advanced SQL
-->
> I don't know about any tutorial, but I hope those informations were
> useful. You might want to search for PHP + MySQL + InnoDB and such on
> your favorite search engine.
will do..thanx for the info guys
cmosser
Chris Mosser Guest
-
Agelmar #5
Re: advanced SQL
Chris Mosser wrote:
One other note is that if you want to use mysqli, you must use MySQL >= 4.1,>>>
>> I don't know about any tutorial, but I hope those informations were
>> useful. You might want to search for PHP + MySQL + InnoDB and such on
>> your favorite search engine.
>
> will do..thanx for the info guys
>
> cmosser
and 4.1 is still verymuch alpha quality (and designated as such).
Agelmar Guest
-
Sam Williams #6
Re: advanced SQL
On Fri, 11 Jul 2003 11:18:48 -0400, Louis-Philippe Huberdeau
<lphuberdeau@sympatico.ca> wrote:
I think you mean that MySQL will not support triggers/stored procedures> PHP will not support triggers and stored procedures until MySQL5
> (currently in development but no ETA).
until version 5 :-) These functions are performed within the database and
have nothing to do with php...
If you have need for triggers/stored procedures or row level table
locking, I suggest that you use postgresql instead of mysql. It supports
all these things and is IMHO a much better product. You can access
postgresql through either the native functions in php or using ODBC (my
preference as it leads to portable applications). The postgresql manual is
also very good at explaining how to write queries, design tables, use
these advanced features and optimise databases.
Regards,
Sam.
---
Posted via [url]news://freenews.netfront.net[/url]
Complaints to [email]news@netfront.net[/email]
Sam Williams Guest
-
Louis-Philippe Huberdeau #7
Re: advanced SQL
This was definetly a typo, thanks for pointing it out. I should really
start reading what I write once in a while.
Sam Williams wrote:> On Fri, 11 Jul 2003 11:18:48 -0400, Louis-Philippe Huberdeau
> <lphuberdeau@sympatico.ca> wrote:
>
>>>>PHP will not support triggers and stored procedures until MySQL5
>>(currently in development but no ETA).
>
> I think you mean that MySQL will not support triggers/stored procedures
> until version 5 :-) These functions are performed within the database and
> have nothing to do with php...
>
> If you have need for triggers/stored procedures or row level table
> locking, I suggest that you use postgresql instead of mysql. It supports
> all these things and is IMHO a much better product. You can access
> postgresql through either the native functions in php or using ODBC (my
> preference as it leads to portable applications). The postgresql manual is
> also very good at explaining how to write queries, design tables, use
> these advanced features and optimise databases.
>
> Regards,
>
> Sam.
> ---
> Posted via [url]news://freenews.netfront.net[/url]
> Complaints to [email]news@netfront.net[/email]Louis-Philippe Huberdeau Guest
-
Heikki Tuuri #8
Re: advanced SQL
Hi!
"Louis-Philippe Huberdeau" <lphuberdeau@sympatico.ca> kirjoitti viestissä
news:PpqQa.1402$104.143350@news20.bellglobal.com.. .and> This was definetly a typo, thanks for pointing it out. I should really
> start reading what I write once in a while.
>
> Sam Williams wrote:> > On Fri, 11 Jul 2003 11:18:48 -0400, Louis-Philippe Huberdeau
> > <lphuberdeau@sympatico.ca> wrote:
> >
> >> >> >>PHP will not support triggers and stored procedures until MySQL5
> >>(currently in development but no ETA).
> >
> > I think you mean that MySQL will not support triggers/stored procedures
> > until version 5 :-) These functions are performed within the databaseMySQL-5.0 is already available as a source tree> > have nothing to do with php...
[url]http://www.mysql.com/doc/en/Installing_source_tree.html[/url].
I saw it run stored procedures in February. My guess is that the first
binary 5.0 release will happen around January 2004.
MySQL has supported row level locking for over 2 years now, starting from>> If you have need for triggers/stored procedures or row level table
>> locking,
MySQL-Max-3.23.34a.
....Best regards,> >
> > Regards,
> >
> > Sam.
Heikki Tuuri
Innobase Oy
[url]http://www.innodb.com[/url]
Transactions, foreign keys, and a hot backup tool for MySQL
Heikki Tuuri Guest



Reply With Quote

