Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement that always returns a record
Message
De
08/11/1999 11:19:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL Statement that always returns a record
Divers
Thread ID:
00288450
Message ID:
00288450
Vues:
62
Hello All,

I am trying to write a SQL statement that will ALWAYS return a record (as shown in the last line below) as well as any additional records that fit the WHERE statement. I thought the UNION statement would do the trick but I can't get it to work.


myquery="SELECT name, dob, sex FROM contacts ;
WHERE contacts.id = current.id UNION ;
Select 'Billy', CTOD('02/02/1974'), 1 INTO CURSOR names"

Any ideas?

Thanks,
Greg
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform