dragonusthei Posted October 17, 2006 Share Posted October 17, 2006 UPDATE order_numbers SET order_number - 3doesnt work so how would i update a table and take a number away from a field. Quote Link to comment Share on other sites More sharing options...
printf Posted October 17, 2006 Share Posted October 17, 2006 [quote author=dragonusthei link=topic=111840.msg453424#msg453424 date=1161126356]UPDATE order_numbers SET order_number - 3doesnt work so how would i update a table and take a number away from a field.[/quote]Just use the column name your subtracting from![code]UPDATE order_numbers SET order_number = ( order_number - 3 ) WHERE some_column = some_value[/code]me! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.