Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting present date to all rows of a grid
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00563357
Message ID:
00563385
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Replace 'datefield' with actual name of the field with empty date in the code below.
SELECT * ;
  FROM employees ;
  WHERE employees.emp_dept = "118";
  INTO TABLE newreport

<b>REPLACE ALL datefield WITH DATE()</b>
LOCATE   && Move pointer back to the top of the table
If you don't have this field in the source table
SELECT *, DATE() AS today ;
  FROM employees ;
  WHERE employees.emp_dept = "118";
  INTO TABLE newreport
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform