Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append via select
Message
 
À
08/12/2005 12:44:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01076028
Message ID:
01076283
Vues:
27
Thanks Fabio, I'll use it. And thanks to Noami.
>>>>VFP9: yes, VFP8: no.
>>>>
>>>Yes and the random problem can be solved in VFP9 in one insert command.
>>
>>I'm curious about how to solve also the random problem in one insert command(so how to insert randomly 300 records of the other table). Do you have any example code? I need it for something I want to do.
>>
>only VFP9
>
>
>INSERT INTO targettable ;
>SELECT S.* FROM sourcetable S join (SELECT TOP 300 PK,RAND() FROM  sourcetable ORDER BY 2) X ON X.PK=s.PK
>
>
>>>
>>>>>In VFP9 (8?) you can do
>>>>>
>>>>>insert into myTable from (select myfields from myOthertables where myFilterCondition).
>>>>>
>>>>>Check the INSERT-SQL command in Help.
>>>>>
>>>>>>hi all,
>>>>>>
>>>>>>any idea , help
>>>>>>i try to append new records to mytable, as under
>>>>>>
>>>>>>
>>>>>>Select * from rami3 ;
>>>>>> where inList( upper(allt(sec_txt)), "ÞØÇÚ ÇäÙãÉ ÇáãÚáæãÇÊ                                   ") ;
>>>>>> append blank;
>>>>>>   into table rami4 nofilter
>>>>>>
>>>>>>thanks
Zakaria al Azhar
My blog on Actuaris.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform