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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. delete stament

delete stament

Scheduled Pinned Locked Moved Database
tutorialquestion
3 Posts 2 Posters 1 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.
  • M Offline
    M Offline
    mjawadkhatri
    wrote on last edited by
    #1

    hi. how to delete field value in row e.g; emp_id overtime 5 50 i want to subtract value in overtime 50-10, emp_id overtime 5 40 hope u undersand my question. thanks in advance jawadkhatri

    A 1 Reply Last reply
    0
    • M mjawadkhatri

      hi. how to delete field value in row e.g; emp_id overtime 5 50 i want to subtract value in overtime 50-10, emp_id overtime 5 40 hope u undersand my question. thanks in advance jawadkhatri

      A Offline
      A Offline
      Andy_L_J
      wrote on last edited by
      #2

      UPDATE TableName
      SET overtime = 40
      WHERE emp_id = 5

      or

      UPDATE TableName
      SET overtime = overtime - 10
      WHERE emp_id = 5

      I don't speak Idiot - please talk slowly and clearly I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury Driven to the arms of Heineken by the wife

      M 1 Reply Last reply
      0
      • A Andy_L_J

        UPDATE TableName
        SET overtime = 40
        WHERE emp_id = 5

        or

        UPDATE TableName
        SET overtime = overtime - 10
        WHERE emp_id = 5

        I don't speak Idiot - please talk slowly and clearly I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury Driven to the arms of Heineken by the wife

        M Offline
        M Offline
        mjawadkhatri
        wrote on last edited by
        #3

        Thanks I have done UPDATE TableName SET overtime = overtime-10 WHERE emp_id = 5

        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