Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Delete a simple row in a database...

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-2007, 04:50 PM
Newbie
 
Join Date: Jun 2007
Posts: 4
Cool Delete a simple row in a database...

I have a sql table in a database with diferent rows but at same time they are similar to each other...
something like this example
01/07/2007 alfa 200
01/07/2007 alfa 400
01/07/2007 beta 200

How can I delete a simple row without touch the others from the database?
It's there a easy way to identify every row in a database with a unique number?
Thanks !

Last edited by albert : 07-01-2007 at 05:44 PM.
Reply With Quote
  #2 (permalink)  
Old 07-01-2007, 06:55 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should use a primary key. See this page: http://www.sqlite.org/lang_createtable.html
Reply With Quote
  #3 (permalink)  
Old 07-01-2007, 07:35 PM
Newbie
 
Join Date: Jun 2007
Posts: 4
Default

Thanks Erel
It works fine with the RowId !!

But when i delete a row ...i delete aswell de rowid for this row; How can I refresh the rowid for the existing rows (after I deleted one row)?

Last edited by albert : 07-01-2007 at 07:41 PM.
Reply With Quote
  #4 (permalink)  
Old 07-01-2007, 07:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

As a principal primary keys are unique, and a deleted key should not be used again.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
read and delete sms...how? Byak@ Questions (Windows Mobile) 1 10-12-2008 06:42 PM
Copy Record from one database to another database. mozaharul Questions (Windows Mobile) 0 07-15-2008 04:47 AM
Delete a row in a table and simultaneously delete it in the database gonzamax Questions (Windows Mobile) 2 12-25-2007 01:23 PM
Delete Control and Delete Form Items alfcen Basic4ppc Wishlist 3 10-05-2007 12:09 PM
How to convert an Access database to a sqlite database Peter Code Samples & Tips 5 07-24-2007 03:20 PM


All times are GMT. The time now is 10:31 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0