Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double data
Message
From
07/01/2019 09:11:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Double data
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 10
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01665171
Message ID:
01665171
Views:
76
Sir I have this data
CREATE CURSOR table1(code c(4),names c(10),debit n(4),credit n(4),code2 c(4))
INSERT into table1 VALUES ('3201','Apple',100,0,'')
INSERT into table1 VALUES ('3203','Mango',125,0,'')
INSERT into table1 VALUES ('3204','Date',200,0,'')
INSERT into table1 VALUES ('3202','Orange',350,0,'')


I want insert following rows at the end of table1




Method:

code column will be replace with code2
Debit column will be replaced with credit
Credit column will be replaced with debit
code2 column will be replace with code

But I do not want to use any temporary table or cursor.

Is there any other method to make data double according to method.

Finally I need this data



Please
Next
Reply
Map
View

Click here to load this message in the networking platform