Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LEFT OUTER JOIN no Criador de Views
Message
De
03/09/2002 16:10:41
Andre Batista
Baru Informatica Ltda
Rio de Janeiro, Brésil
 
 
À
03/09/2002 08:18:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00693686
Message ID:
00696382
Vues:
12
ok mais como o fox aceita se eu criar as views por script ou seja em vez de fazer a view no criador de View eu faso por prg
Exemplo:

CREATE SQL VIEW "C_CAIXAS_CONSULTA" ;
REMOTE CONNECT "consulta" ;
AS SELECT Caixa.des_caixa, Movimento_caixa.cod_movimento,;
Movimento_caixa.dth_abertura,;
Movimento_caixa.cod_usuario,Movimento_caixa.val_abertura,;
Movimento_caixa.tip_abertura, 1.000-1.000 as valor_caixa, space(30) as;
nome_usuario,Caixa.cod_caixa;
FROM caixa Caixa left outer join movimento_caixa Movimento_caixa;
on (Caixa.cod_caixa = Movimento_caixa.cod_caixa and;
movimento_caixa.log_fechado = .f.)

DBSetProp('C_CAIXAS_CONSULTA', 'View', 'UpdateType', 1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'WhereType', 3)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchMemo', .T.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'SendUpdates', .F.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'UseMemoSize', 255)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchSize', -1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'MaxRecords', -1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'Tables', 'caixa,movimento_caixa')
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'Prepared', .F.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'CompareMemo', .T.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchAsNeeded', .F.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchSize', -1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'Comment', "")
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'BatchUpdateCount', 1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'ShareConnection', .T.)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform