Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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....
    4. 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...
    5. 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...
  3. #2

    Default Re: advanced SQL

    "Chris Mosser" <cmosser@comcast.net> wrote in message
    news:<-PmcnabKKP3wupOiXTWJiA@comcast.com>...
    >
    > 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 best place to look is the language reference manual for
    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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default Re: advanced SQL

    Chris Mosser wrote:
    >>
    >> 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
    One other note is that if you want to use mysqli, you must use MySQL >= 4.1,
    and 4.1 is still verymuch alpha quality (and designated as such).


    Agelmar Guest

  7. #6

    Default Re: advanced SQL

    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]
    Sam Williams Guest

  8. #7

    Default 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

  9. #8

    Default Re: advanced SQL

    Hi!

    "Louis-Philippe Huberdeau" <lphuberdeau@sympatico.ca> kirjoitti viestissä
    news:PpqQa.1402$104.143350@news20.bellglobal.com.. .
    > 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...
    MySQL-5.0 is already available as a source tree
    [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.
    >> If you have need for triggers/stored procedures or row level table
    >> locking,
    MySQL has supported row level locking for over 2 years now, starting from
    MySQL-Max-3.23.34a.

    ....
    > >
    > > Regards,
    > >
    > > Sam.
    Best regards,

    Heikki Tuuri
    Innobase Oy
    [url]http://www.innodb.com[/url]
    Transactions, foreign keys, and a hot backup tool for MySQL


    Heikki Tuuri Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139