Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nullable fields in SELECT...READWRITE cursor?
Message
De
19/07/2005 20:17:21
 
 
À
19/07/2005 16:04:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MySQL
Divers
Thread ID:
01033998
Message ID:
01034068
Vues:
16
Hi Russ.

Probably the quickest way is to create a cursor with a structure that matches your intended Select results, only with all the fields set to allow Nulls and them stick
union select * from FixStructure
into your select (assuming that you called the cursor FixStructure. Now when Fox gathers the structure information it will now that the output fields need to be able to hold Null, and because the FixStructure cursor is empty there isn't any extra data overhead like you would get if you tried to process the result and add Null support later.

Ian Simcock.




>I am trying to use a select statement to create an empty cursor into which I can write data, like:
>
>Select blah, blahh, blahhh FROM blaaaah INTO CURSOR myCursor READWRITE
>
>Unfortunately, I need the fields in the resulting cursor to accept nulls, which they do not. How can I make these fields accept nulls?
>
>TIA
>
>Russ
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform