Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incrementing a field with a select statement
Message
From
15/08/2002 11:14:12
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Incrementing a field with a select statement
Miscellaneous
Thread ID:
00690012
Message ID:
00690012
Views:
47
Hello Group,

Can I increment a field in a select statement.

I have a table with two hundred rows I want to update add my field with values from 300 - 500
I have a variable name @newvalue

can I write a select statement that will create a new table I.E.

SELECT @NewValue (some increment method) as myuniquefield, name, address
INTO myNewTable
FROM myOldTable

Thanks
Jim
Next
Reply
Map
View

Click here to load this message in the networking platform