Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update table
Message
 
 
To
21/04/2011 10:31:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01508025
Message ID:
01508032
Views:
41
>hello naomi I'm talking about sql server 2005 and I can not update it in the insert, because the field ncf should be the max ncf +1 in the same table at which to insert as the invoice and both depend on the field tipncf

In the above sample, please show the insert command and what this record should become?

I have a feeling you need to use ROW_NUMBER() function, but it's not clear from your explanation what do you want.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform