Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
1928 Points
1352 Posts
Jan 13, 2012 09:01 AM|LINK
IF 1-6 RECORDS comes from page 1 means how u stored that in table,do u maintain any Id for identify these records comes from this page?
If it so update by using that id.
If it not so u should maintain a common Id for all pages. U have to store that Id when u store records in ur table.
For example,
Table1
--------
Id name value pageId
----------------------------
1 a a 1
2 b b 1
3 c c 2
4 d d 2
U shold have this type of table then only u have update or delete group of records at once.
EX: Update Table1 set value="somethng" where pageId=2
The above query can update multiple records at a single execution..
ssjGanesh
Participant
1928 Points
1352 Posts
Re: Update multiple rows at once
Jan 13, 2012 09:01 AM|LINK
IF 1-6 RECORDS comes from page 1 means how u stored that in table,do u maintain any Id for identify these records comes from this page?
If it so update by using that id.
If it not so u should maintain a common Id for all pages. U have to store that Id when u store records in ur table.
For example,
Table1
--------
Id name value pageId
----------------------------
1 a a 1
2 b b 1
3 c c 2
4 d d 2
U shold have this type of table then only u have update or delete group of records at once.
EX: Update Table1 set value="somethng" where pageId=2
The above query can update multiple records at a single execution..
Mark as answer,if it helped U!