Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when adding space in a column alias
Message
 
 
To
22/10/2004 15:18:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00953842
Message ID:
00954098
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform