Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update only one Record at a time
Message
De
12/02/2008 09:21:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/02/2008 09:12:40
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01291752
Message ID:
01291780
Vues:
6
>this is the data i need to update Time-Out Field when i try with UPDATE SQL command it is updating both row.is there way to update only one row..?
>
>Date Time-in Time-out
>01/01/2008 9:00 Am 2:00 pm
>01/01/2008 4:00 pm 10:00pm

It may help if your table has a primary key, apart from any data the user enters.

Whether the date is the primary key or not, you can avoid duplicate data by declaring an index on date (or on a combination of date and time-in; whatever you want to be the data that doesn't gets duplicates). Declare the index either as primary, or as candidate. In this case, your users won't be able to introduce duplicate data in the first place.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform