mysql question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • illfuuptn
    SBR MVP
    • 03-17-10
    • 1860

    #1
    mysql question
    I want to do a typical
    Code:
    Update table x insert values(1,2,3...)
    but I want the 1st value in parentheses to be put in the 30th field column. Then the second in the 31st and so on. It obviously usually defaults to putting the first value in the first column, 2nd in 2nd column, etc.
  • MonkeyF0cker
    SBR Posting Legend
    • 06-12-07
    • 12144

    #2
    Is this a serious question?

    Uhh. You just answered your own question.
    Comment
    • bink
      SBR Rookie
      • 10-15-11
      • 36

      #3
      UPDATE and INSERT INTO are two different SQL statements. You can't have them in the same query.

      So if you're just updating existing rows use UPDATE (ex. UPDATE table SET column=value WHERE otherColumn = someValue) or if you're adding new rows use INSERT INTO (ex. INSERT INTO table (columns) VALUES (values)).

      If you're trying to add new columns into an existing table then you'll need to use the ALTER statement (ex. ALTER TABLE table ADD column AFTER column) and then UPDATE the values of the new columns.
      Comment
      • MonkeyF0cker
        SBR Posting Legend
        • 06-12-07
        • 12144

        #4
        Are you incapable of using a search engine?

        That's a serious question.

        There's no possible way that you could have found that update syntax if you actually bothered looking.
        Comment
        • illfuuptn
          SBR MVP
          • 03-17-10
          • 1860

          #5
          Originally posted by MonkeyF0cker
          Are you incapable of using a search engine?

          That's a serious question.

          There's no possible way that you could have found that update syntax if you actually bothered looking.
          I actually googled the shit out of it and nothing came up, baby doll.
          Comment
          • MonkeyF0cker
            SBR Posting Legend
            • 06-12-07
            • 12144

            #6
            Originally posted by illfuuptn
            I actually googled the shit out of it and nothing came up, baby doll.
            Nothing came up for "sql update"???

            You're kidding, right?

            I only get 161,000,000 hits.
            Comment
            • MonkeyF0cker
              SBR Posting Legend
              • 06-12-07
              • 12144

              #7
              How about SQL tutorial??

              SQL syntax?

              SQL commands?

              What on Earth were you searching for?
              Comment
              • illfuuptn
                SBR MVP
                • 03-17-10
                • 1860

                #8
                Maybe you should actually read the whole op, fuhkface.
                Comment
                • MonkeyF0cker
                  SBR Posting Legend
                  • 06-12-07
                  • 12144

                  #9
                  Originally posted by illfuuptn
                  Maybe you should actually read the whole op, fuhkface.
                  Uhh. I read your nonsensical post.

                  So you decided to google imaginary SQL statements instead of trying to read a tutorial and find the actual commands and syntax? Is that what you're saying?

                  Brilliant.
                  Comment
                  • strixee
                    SBR Sharp
                    • 05-31-10
                    • 432

                    #10
                    All right, illfuuptn it's good you have a sense for humor, but better post in PT.
                    Comment
                    • mikeanite
                      SBR Sharp
                      • 04-13-10
                      • 475

                      #11
                      atleast you know how it feels to be a newbie and no one wants to help you. been feeling this for awhile
                      Comment
                      • Maverick22
                        SBR Wise Guy
                        • 04-10-10
                        • 807

                        #12
                        I don't see where you read that noone was trying to help him
                        Comment
                        • mikeanite
                          SBR Sharp
                          • 04-13-10
                          • 475

                          #13
                          feed him enough cheese to keep him going. if this was in the early 2000's ppl were more willing to share their methods openly cuz they were still trying to learn like the rest of us.
                          Comment
                          • Maverick22
                            SBR Wise Guy
                            • 04-10-10
                            • 807

                            #14
                            Help and hand holding are two different things
                            Last edited by Maverick22; 04-03-12, 10:06 AM.
                            Comment
                            SBR Contests
                            Collapse
                            Top-Rated US Sportsbooks
                            Collapse
                            Working...