473,416 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Update a column

OuTCasT
374 256MB
Hi

Is it possible to update a columns data in a row to another columns data when that row is inserted ?
For example i have a incremented column and i want to set the Job ID column equal to the incremented column when the row is inserted.

so each row will have the incremented value and the same value of that column in the jobid column of the same row.

Thanks
Aug 13 '10 #1
2 986
NeoPa
32,556 Expert Mod 16PB
I imagine that would depend on how you are inserting the data. It's hard to help with questions when only half the necessary information is available.
Aug 13 '10 #2
ck9663
2,878 Expert 2GB
If JobID should always be related to the incremented column, just use a COMPUTED COLUMN instead.

Good Luck!!!

~~ CK
Aug 13 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: tone | last post by:
Hi, got: ! ! How to overwrite (update) all elements of ! with Max (or latest) of ! ? I tried if with a Update-Querry - without success. Thankx
3
by: Simon Gare | last post by:
Hi all, have a 'money' field in the SQL 2000 table that users enter 200 (for example which represents £2.00) without the decimal point, what I need is to have a command or something that adds...
5
by: logina1 | last post by:
hi all, This command update table1 set col4 = rownum; updates all the records with auto increment number.But i want to increment based on date. i.e when the date changes it need to start from 1....
1
by: razv210480 | last post by:
I have configured a logical standby database and need to update the ERROR column on DBA_LOGSTDBY_SKIP view to Y, to prevent SQL apply from stopping, for all owners who have STATEMENT_OPT='INTERNAL...
1
by: pieandpeas | last post by:
Hi, i've been searching the internet for a good reference of how to add the update column functionality to a gridview, coding everything in the .vb behind the page stuff myself, e.g not using a...
2
by: Thomas609 | last post by:
Hi, I want to update a column typed datetime. My statement is: update 'tablename' set Datum_Ende = '2007-12-17 08:49:04.000' where 'columnID_name' = 23250 and 'columndate_Name' =...
4
by: mimime | last post by:
Scenario: Assign a new_customer_id to each existing customer of our three business. A master lookup table (M) was given to me with pre-populated (SEQ_NOs), (NEW_CUSTIDs), and NULL in (OLD_CUSTIDS)....
3
by: =?Utf-8?B?Um9nZXIgVHJhbmNoZXo=?= | last post by:
The problem I'm coming across now is that I can't update such a column, because I have set the auto generated value to true, and LINQ won't let me change such a value, a la...
8
by: Fluffygoldfish | last post by:
Hi I am trying to tidy up an access database that has traditionally just been used as a spreadsheet. I have split up the information into different tables and need some help transferring...
3
by: fionashaw | last post by:
I am trying to fix an issue for a customer which requires us to update a column in a table with the value in the column concatenated (||) with the value in another row in the same table. The table...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.