Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL REPLACE help
Message
From
13/07/2001 13:50:31
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00530393
Message ID:
00530414
Views:
15
How about:
REPLACE myTable WITH IIF(this=1 OR that=2,new_value, otherwhise)
>table1.costctr needs to be converted to a new value. If have put the pseudo code below but would like to do it in an SQL statement.
>
>if table1.costctr = costctr.o_costctr and
> control.site_id = costctr.site_id
>replace table1.costctr with costctr.n_costctr
>endif
>
>table1 has about 1000 records, and a couple hundred fiels
>costctr has about 8000 records and only a couple of fields
>control has only 1 record and only a couple of fields
>
>
>thanks
>
>Brenda
Previous
Reply
Map
View

Click here to load this message in the networking platform