dumping specific inserts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kerri

    #1

    dumping specific inserts

    Hi,

    I need to do a mysqldump of specific inserts, updates & deletes. I
    read in the docs that I can use -w or --where.

    Can I do a join?

    Could someone provide an example?

    Is there another way?

    Thanks,

    Kerri
  • steve

    #2
    Re: dumping specific inserts

    "kerri3" wrote:[color=blue]
    > Hi,
    >
    > I need to do a mysqldump of specific inserts, updates & deletes. I
    > read in the docs that I can use -w or --where.
    >
    > Can I do a join?
    >
    > Could someone provide an example?
    >
    > Is there another way?
    >
    > Thanks,
    >
    > Kerri[/color]

    You can use phpmyadmin, and do any kind of query. Then in the window
    showing the query result, there is an export option. You can use that
    to output the result of query (even join query, or having where
    clause) to diff. formats.

    --
    http://www.dbForumz.com/ This article was posted by author's request
    Articles individually checked for conformance to usenet standards
    Topic URL: http://www.dbForumz.com/mySQL-dumpin...ict136238.html
    Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=455115

    Comment

    • kerri

      #3
      Re: dumping specific inserts

      Hey Steve,

      I would normally follow that route, but this is for a work project and
      we're purely a perl house right now.

      But I'm assuming that phpmyadmin. probably takes the query and puts it
      into a mysqldump -w.

      Will play around some more and repost.

      Thanks,

      Kerri

      steve <UseLinkToEmail @dbForumz.com> wrote in message news:<411076b4$ 1_3@news.athena news.com>...[color=blue]
      > "kerri3" wrote:[color=green]
      > > Hi,
      > >
      > > I need to do a mysqldump of specific inserts, updates & deletes. I
      > > read in the docs that I can use -w or --where.
      > >
      > > Can I do a join?
      > >
      > > Could someone provide an example?
      > >
      > > Is there another way?
      > >
      > > Thanks,
      > >
      > > Kerri[/color]
      >
      > You can use phpmyadmin, and do any kind of query. Then in the window
      > showing the query result, there is an export option. You can use that
      > to output the result of query (even join query, or having where
      > clause) to diff. formats.[/color]

      Comment

      • kerri

        #4
        Re: dumping specific inserts

        Today I learned that you can't do a join in the where_clause of
        mysqldump. Would be really helpful if you could.

        An easy solution was to output my queries (modified with insert
        statements) to a log file.

        Kerri


        steve <UseLinkToEmail @dbForumz.com> wrote in message news:<411076b4$ 1_3@news.athena news.com>...[color=blue]
        > "kerri3" wrote:[color=green]
        > > Hi,
        > >
        > > I need to do a mysqldump of specific inserts, updates & deletes. I
        > > read in the docs that I can use -w or --where.
        > >
        > > Can I do a join?
        > >
        > > Could someone provide an example?
        > >
        > > Is there another way?
        > >
        > > Thanks,
        > >
        > > Kerri[/color]
        >
        > You can use phpmyadmin, and do any kind of query. Then in the window
        > showing the query result, there is an export option. You can use that
        > to output the result of query (even join query, or having where
        > clause) to diff. formats.[/color]

        Comment

        Working...