Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursoradapter question
Message
De
23/02/2006 11:39:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Cursoradapter question
Divers
Thread ID:
01098549
Message ID:
01098549
Vues:
53
Hi all,

I am using the CursorAdapter class in VFP8 and I have this scenario. Due to reserved keyword restriction and poor choice of column names, we have the following table schemas:
  Assume that PKFLD is the primary key.

  Oracle:
  MyTable (PKFLD NUMBER(10), Level$ VARCHAR2(10))  && LEVEL is reserved in Oracle

  VFP8:
  MyTable (PKFLD I, Level C(10)) && '$' is not valid in VFP8
There is the CursorSchema property which I can use for the VFP8 cursor schema. Where should the mapping go?

Using the CREATE SQL format this works:
cSql=[SELECT Level$ AS "Level" FROM MyTable]
CREATE SQL VIEW rv_MyTable REMOTE CONN MyConn AS &cSql
* --- DBSETPROP() and CURSORSETPROP() follows ...
ramil
~~ learning to stand still
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform