Jump to content

how to write this query


hno

Recommended Posts

 

 

HI

I want a query that add 1 to the value that the query has been retrieve from the database.In the other hands a=a+1 and then update that field.

thanks

 

I'm having difficulty understanding you.  Do you want to add 1 to a field?

 

UPDATE table SET field = field + 1

 

Or, do you want to add one to field 'a' and assign it to field 'b'?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.