Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Find everything you need for the Galaxy S5 and discuss it in our S5 forum!
Have you seen that OnePlus One's awesome camera?? The forum is over here!

test: Reply
 
LinkBack Thread Tools
Old July 10th, 2013, 10:25 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jan 2013
Posts: 53
 
Device(s):
Carrier: Not Provided

Thanks: 11
Thanked 1 Time in 1 Post
Default is it better to use delete or upgrade to delete data in rows

if row_id goes from top to bottom and columns go left to right
i dont want to delete the row only all data .
is it better to use delete or upgrade?


column1|column2|column3
1 items | name1 |name2
2
3
4
5
is there a way to delete name1 and name2 without deleteing any rows?

i have some code ive been tring but it doesnt work.


[code]
public
boolean updatenotdelete(long rowId, String item, String have, String need, String got, String store, String cost) {
ContentValues args =
new ContentValues();
// args.put(KEY_ITEMS, item);

args.put(
KEY_HAVE, have);
args.put(
KEY_NEED, need);
args.put(
KEY_GOT, got);
args.put(
KEY_STORE, store);
args.put(
KEY_COST, cost);

returnmDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0;

}


[code]

flyhigh427 is offline  
Reply With Quote
sponsored links
Old July 12th, 2013, 02:07 PM   #2 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jan 2013
Posts: 53
 
Device(s):
Carrier: Not Provided

Thanks: 11
Thanked 1 Time in 1 Post
Default

update seems better i think
flyhigh427 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:08 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.