Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when adding space in a column alias
Message
 
 
À
22/10/2004 15:18:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00953842
Message ID:
00954098
Vues:
22
Mo,

As the others have said, you can not have a space in the column name in VFP. SQL Server columns can have spaces in them, but then you have to keep using " around the field names:
create table #test ( "field with spaces" char(20), test int )
insert into #test values ( 'does it work', 100 )

select * from #test
select "field with spaces" from #test
>select fieldname as "field name" from tablexx
>result in an error
>
>select fieldname as field_name from tablexx
>work fine.
>
>am I doing anything wrong or it can not be done, yet.
>I thought we used to be able to do that. or I am mixing VFP with other tool.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform