473,396 Members | 1,748 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,396 software developers and data experts.

Update multiple rows of a column by same value in Oracle

My expected out is

ITEMNO ITEMPOS_NO

1 1
1 2
1 3
2 1
2 2
2 3
3 1
3 2
3 3

Any help would be appreciated. Thanks in Advance
Nov 5 '14 #1
2 3431
Hello sumanta5877,
can you please provide which field value you want to update?
Please provide some details about your requirement and table structure.

Thanks!
Nov 5 '14 #2
Luuk
1,047 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO TABLE mytable(ITEMNO) VALUES(1),(2),(3);
  2. INSERT INTO TABLE mytable SELECT T2.ITEMNO, T1.ITEMNO
  3.                           FROM mytable T1, mytable T2;
  4. DELETE FROM mytable WHERE  ITEMPOS_NO is NULL; 
  5.  
Nov 9 '14 #3

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

Similar topics

2
by: Colin Steadman | last post by:
Part No Description Quantity 45643 Random part 10 45678 Another Random part 7 98944 And another 1 <submit button> ...
4
by: shank | last post by:
Visually, the page will look somewhat like a spreadsheet. It could have hundreds of records (rows) displayed. I want to enable the user to edit any one or any number of records and any fields, then...
0
by: Nick Heppleston | last post by:
I have a concatenation problem and I was wondering if somebody might be able to offer some help :-) I have the following table structure holding product long descriptions: Part...
10
by: Anthony Robinison | last post by:
I'm trying to UPDATE multiple rows in a single statement. I've seen some examples but to me they don't seem to apply to my scenario. Below is my original SQL: UPDATE AIM.AIMRetrievedItem SET...
3
by: spartacus | last post by:
Hi, Does SQL support update to multiple rows where values coming from a sub-query? e.g insert into TABLE1 select column1, column2, column3 from TABLE2
0
by: sanju | last post by:
Hi, I have a table called Photos, where user will have 1 to 10 photos and only one photo will set to be active at any given point of time.(i.e IsPermitted ='True' and remaining all photos set to...
3
ashsa
by: ashsa | last post by:
Hi all.. I am having a table FTP_FILE_SEQUENCE_STATUS with fields FILE_TYPE ----- varchar2(10) FILE_SEQUENCE_NO ------- Number(7) GENERATION_DATE ------ Date STATUS -------- varchar2(1)...
10
by: alcstudio | last post by:
Hello there i wonder how the update string should look if i want to update multiple posts at same time. Iam looping out all post from a table like this: set recsettraktamente =...
0
bilibytes
by: bilibytes | last post by:
hi, i am trying to UPDATE multiple rows with mysql. I know how to do it with multiple queries but i think it would be less resource consuming generating mysql query code with php and update all...
7
by: CoachDave48 | last post by:
I am a rookie coder and got some great help from Marcus last year so I thought I would make another request. I am trying to retrieve all boys in one household into a form and edit the individual...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...

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.