Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How inserting function in SQL???
Message
 
To
17/03/1999 08:59:12
Larry Santos
Local Data System
Philippines
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00198513
Message ID:
00198516
Views:
13
You should be able to do it exactly as in your example. You can use AS to give the result of the function a field name, like this:

SELECT *, MyFunction() AS mycolumn ...

VFP will probably choose the size and type of the field based on the result of myfunction() in the first row returned, so you may want to make sure the string it returns is always the same size.

>Hi to all.
>
> Can i insert a function in SQL or select statement?
>
>e.g. select [field1], field[2], myfunction() from mydatabase ....
>
>Thanks,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform