Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert based on a select
Message
From
21/03/2003 07:26:07
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
 
To
21/03/2003 06:53:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00768499
Message ID:
00768504
Views:
18
Hi Rixon,

That syntax won't work with VFP versions prior to 8. In earlier versions you'll need to break it up.


Regards,

Liam


>I'm trying to get the following SQL code to work in VFP:
>
>INSERT INTO employee (EmpNo, LastName, FirstName,
> PhoneExt, HireDate, Salary)
> SELECT EmpNo + 200, LastName, FirstName,'000',
> HireDate, Salary + 1000
> FROM empins
>
>Evidently VFP uses different syntax than SQL server or it simply can't insert data based on the results of a select statement.
>
>Any help would be appreciated. Thanks.
Liam O'Hagan
MCP VFP Desktop Apps
Previous
Reply
Map
View

Click here to load this message in the networking platform