Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Update All records

Update All records

Scheduled Pinned Locked Moved Database
csharpdatabasetutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ivo75
    wrote on last edited by
    #1

    Hi, I use MS Access 2003 database and I want to Update all records in 1 column. How to make this in once? I use VB.NET

    L 1 Reply Last reply
    0
    • I ivo75

      Hi, I use MS Access 2003 database and I want to Update all records in 1 column. How to make this in once? I use VB.NET

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      I would try a regular update statement without a WHERE clause, as in:

      UPDATE table_name SET column_name=value

      :)

      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

      I 1 Reply Last reply
      0
      • L Luc Pattyn

        I would try a regular update statement without a WHERE clause, as in:

        UPDATE table_name SET column_name=value

        :)

        Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

        I Offline
        I Offline
        ivo75
        wrote on last edited by
        #3

        In this column have numeric data from 1 to 12 and I want to increase them with 1 e.g. 1->2 etc

        L 1 Reply Last reply
        0
        • I ivo75

          In this column have numeric data from 1 to 12 and I want to increase them with 1 e.g. 1->2 etc

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Have you tried

          UPDATE table_name SET column_name=column_name+1

          ? :)

          Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

          I 1 Reply Last reply
          0
          • L Luc Pattyn

            Have you tried

            UPDATE table_name SET column_name=column_name+1

            ? :)

            Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

            I Offline
            I Offline
            ivo75
            wrote on last edited by
            #5

            Thanks this is work for me!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups