Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding field to a cursor
Message
De
03/08/2002 03:48:24
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/08/2002 02:44:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00685818
Message ID:
00685827
Vues:
35
This message has been marked as the solution to the initial question of the thread.
>From a cursor, I want to add some specific fields. I am presently using this approach:
>
>
>CREATE CURSOR TempNotes (Notes M)
>APPEND BLANK
>SELECT Temp.*,TempNotes.Notes AS Url,SPACE(20) AS Image FROM Temp,TempNotes;
> INTO CURSOR Temp2 READWRITE
>
>
>I was wondering if there would be a way to do that without redoing a SQL from the main cursor into another cursor. Basically, I would like to simply add the additional fields in the Temp cursor without having to select all in Temp2.
>
>We discussed the approach of adding a memo field recently by using that approach. I am wondering if we could benefit of a modify structure approach within the cursor itself.

Michel,
Assuming you created the 'temp' cursor with 'readwrite' :

ALTER TABLE 'temp' ADD COLUMN url m
ALTER TABLE 'temp' ADD COLUMN cImage c(20)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform