Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Steve,
>I do a SELECT command INTO CURSOR which is working fine, but I also need to add a couple of fields into the cursor that are coming from a memory variable, not from a table.
Here is a SELECT that grabs all the fields in a table, and adds string field to the end of every record:
select *, 'Field1' as EndField from orders
You can take out the string and put in a variable or calculation, or almost anything.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement